congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
org.eclipse.xtext.xbase.lib
Code IndexAdd Tabnine to your IDE (free)

How to use org.eclipse.xtext.xbase.lib

Best Java code snippets using org.eclipse.xtext.xbase.lib (Showing top 20 results out of 621)

origin: at.bestsolution.efxclipse.eclipse/org.eclipse.xtext.xbase.lib

/**
 * @return a read-only {@link ListIterator} for this.
 */
@Override
@Pure
public ListIterator<Integer> iterator() {
  return isEmpty() ? EMPTY_LIST_ITERATOR : new RangeIterator();
}
origin: org.eclipse.xtext/org.eclipse.xtext.xbase.lib

/**
 * @param array
 *            the array
 * @param index
 *            the index
 * @return the value at the given index
 */
@Pure
@Inline("$1[$2]")
public static <T> T get(T[] array, int index) {
  return array[index];
}
origin: org.eclipse.xtext/org.eclipse.xtext.xbase.lib

/**
 * Creates a new {@link WrappedByteArray} that is backed by the given primitive {@code array}.
 *
 * @param array
 *            the to-be-wrapped array. May be <code>null</code> which will cause any method on the resulting
 *            object to fail.
 * @return the wrapped array. Never <code>null</code>.
 */
@Pure
public static WrappedByteArray create(byte[] array) {
  return new WrappedByteArray(array);
}
origin: org.eclipse.xtext/org.eclipse.xtext.xbase.lib

/**
 * The postfix <code>increment</code> operator. This is the equivalent to the Java's <code>++</code> postfix function.
 * 
 * @param i  an integer.
 * @return   <code>i++</code>
 * @since 2.6
 */
@Inline(value="$1++")
public static Integer operator_plusPlus(Integer i) {
  throw new HardcodedInInterpreterException();
}
/**
origin: org.eclipse.xtext/org.eclipse.xtext.xbase.lib

  @Override
  public R apply(V1 v1, V2 v2) {
    return after.apply(before.apply(v1, v2));
  }
};
origin: org.eclipse.xtext/org.eclipse.xtext.xbase.lib

/**
 * @param array
 *            the array
 * @param index
 *            the index
 * @return the value at the given index
 */
@Pure
@Inline("$1[$2]")
public static boolean get(boolean[] array, int index) {
  return array[index];
}

origin: org.eclipse.xtext/org.eclipse.xtext.xbase.lib

/**
 * @return a read-only {@link ListIterator} for this.
 */
@Override
@Pure
public ListIterator<Integer> iterator() {
  return isEmpty() ? EMPTY_LIST_ITERATOR : new RangeIterator();
}
origin: org.eclipse.xtext/org.eclipse.xtext.xbase.lib

/**
 * The postfix <code>increment</code> operator. This is the equivalent to the Java's <code>++</code> postfix function.
 * 
 * @param l  a long.
 * @return   <code>l++</code>
 * @since 2.6
 */
@Inline(value="$1++")
public static long operator_plusPlus(long l) {
  throw new HardcodedInInterpreterException();
}

origin: org.eclipse.xtext/org.eclipse.xtext.xbase.lib

/**
 * @param array
 *            the array
 * @return the length of the given array
 */
@Pure
@Inline("$1.length")
public static int length(double[] array) {
  return array.length;
}

origin: org.eclipse.xtext/org.eclipse.xtext.xbase.lib

/**
 * The postfix <code>increment</code> operator. This is the equivalent to the Java's <code>++</code> postfix function.
 * 
 * @param l  a long.
 * @return   <code>l++</code>
 * @since 2.6
 */
@Inline(value="$1++")
public static Long operator_plusPlus(Long l) {
  throw new HardcodedInInterpreterException();
}
/**
origin: org.eclipse.xtext/org.eclipse.xtext.xbase.lib

/**
 * @param array
 *            the array
 * @param index
 *            the index
 * @return the value at the given index
 */
@Pure
@Inline("$1[$2]")
public static short get(short[] array, int index) {
  return array[index];
}

origin: org.eclipse.xtext/org.eclipse.xtext.xbase.lib

/**
 * The postfix <code>decrement</code> operator. This is the equivalent to the Java's <code>--</code> postfix function.
 * 
 * @param d  a double.
 * @return   <code>d--</code>
 * @since 2.6
 */
@Inline(value="$1--")
public static double operator_minusMinus(double d) {
  throw new HardcodedInInterpreterException();
}

origin: org.eclipse.xtext/org.eclipse.xtext.xbase.lib

/**
 * @param array
 *            the array
 * @param index
 *            the index
 * @return the value at the given index
 */
@Pure
@Inline("$1[$2]")
public static byte get(byte[] array, int index) {
  return array[index];
}

origin: org.eclipse.xtext/org.eclipse.xtext.xbase.lib

/**
 * The postfix <code>decrement</code> operator. This is the equivalent to the Java's <code>--</code> postfix function.
 * 
 * @param s  a short.
 * @return   <code>s--</code>
 * @since 2.6
 */
@Inline(value="$1--")
public static Short operator_minusMinus(Short s) {
  throw new HardcodedInInterpreterException();
}

origin: org.eclipse.xtext/org.eclipse.xtext.xbase.lib

/**
 * The logical <code>not</code> (negation). This is the equivalent to the java <code>!</code> operator.
 * 
 * @param b
 *            a boolean value.
 * @return <code>!b</code>
 */
@Pure
@Inline(value="(!$1)", constantExpression=true)
public static boolean operator_not(boolean b) {
  return !b;
}

origin: org.eclipse.xtext/org.eclipse.xtext.xbase.lib

/**
 * The postfix <code>increment</code> operator. This is the equivalent to the Java's <code>++</code> postfix function.
 * 
 * @param s  a short.
 * @return   <code>s++</code>
 * @since 2.6
 */
@Inline(value="$1++")
public static Short operator_plusPlus(Short s) {
  throw new HardcodedInInterpreterException();
}
/**
origin: org.eclipse.xtext/org.eclipse.xtext.xbase.lib

/**
 * The unary <code>minus</code> operator. This is the equivalent to the Java's <code>-</code> function.
 * 
 * @param c  a character.
 * @return   <code>-c</code>
 * @since 2.3
 */
@Pure
@Inline(value="(-$1)", constantExpression=true)
public static int operator_minus(char c) {
  return -c;
}

origin: org.eclipse.xtext/org.eclipse.xtext.xbase.lib

/**
 * The postfix <code>increment</code> operator. This is the equivalent to the Java's <code>++</code> postfix function.
 * 
 * @param f  a float.
 * @return   <code>f++</code>
 * @since 2.6
 */
@Inline(value="$1++")
public static float operator_plusPlus(float f) {
  throw new HardcodedInInterpreterException();
}

origin: org.eclipse.xtext/org.eclipse.xtext.xbase.lib

/**
 * The unary <code>minus</code> operator. This is the equivalent to the Java's <code>-</code> function.
 * 
 * @param b  a byte.
 * @return   <code>-b</code>
 * @since 2.3
 */
@Pure
@Inline(value="(-$1)", constantExpression=true)
public static int operator_minus(byte b) {
  return -b;
}

origin: org.eclipse.xtext/org.eclipse.xtext.xbase.lib

/**
 * The postfix <code>increment</code> operator. This is the equivalent to the Java's <code>++</code> postfix function.
 * 
 * @param c  a character.
 * @return   <code>c++</code>
 * @since 2.6
 */
@Inline(value="$1++")
public static Character operator_plusPlus(Character c) {
  throw new HardcodedInInterpreterException();
}
/**
org.eclipse.xtext.xbase.lib

Most used classes

  • IterableExtensions
    This is an extension library for Iterable.
  • Exceptions
    Useful helper methods when dealing with exceptions.
  • CollectionLiterals
    This is an extension library for java.util.Collection.
  • Pure
  • Conversions
    This is a library used to convert arrays to lists and vice versa in a way that keeps the identity of
  • Extension,
  • ListExtensions,
  • ObjectExtensions,
  • Pair,
  • ToStringBuilder,
  • Procedures$Procedure1,
  • Functions$Function1,
  • IteratorExtensions,
  • Inline,
  • IntegerRange,
  • ReflectExtensions,
  • ExclusiveRange,
  • Procedures$Procedure2,
  • Functions$Function2
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now