Documentation of 'org.mapdb.Fun' Java class
Fun
org.mapdb

Class Fun



  • public final class Fun
    extends java.lang.Object
    Functional stuff. Tuples, function, callback methods etc..
    • Field Detail

      • PLACEHOLDER

        public static final java.lang.Object PLACEHOLDER
        place holder for some stuff in future
      • COMPARATOR

        public static final java.util.Comparator COMPARATOR
      • REVERSE_COMPARATOR

        public static final java.util.Comparator REVERSE_COMPARATOR
      • EMPTY_ITERATOR

        public static final java.util.Iterator EMPTY_ITERATOR
      • BYTE_ARRAY_COMPARATOR

        public static final java.util.Comparator<byte[]> BYTE_ARRAY_COMPARATOR
      • CHAR_ARRAY_COMPARATOR

        public static final java.util.Comparator<char[]> CHAR_ARRAY_COMPARATOR
      • INT_ARRAY_COMPARATOR

        public static final java.util.Comparator<int[]> INT_ARRAY_COMPARATOR
      • LONG_ARRAY_COMPARATOR

        public static final java.util.Comparator<long[]> LONG_ARRAY_COMPARATOR
      • DOUBLE_ARRAY_COMPARATOR

        public static final java.util.Comparator<double[]> DOUBLE_ARRAY_COMPARATOR
      • COMPARABLE_ARRAY_COMPARATOR

        public static final java.util.Comparator<java.lang.Object[]> COMPARABLE_ARRAY_COMPARATOR
        Compares two arrays which contains comparable elements
      • RECORD_ALWAYS_TRUE

        public static final Fun.RecordCondition RECORD_ALWAYS_TRUE
        record condition which always returns true
    • Method Detail

      • comparator

        public static <T> java.util.Comparator<T> comparator()
        A utility method for getting a type-safe Comparator, it provides type-inference help. Use this method instead of COMPARATOR in order to insure type-safety ex: Comparator<Integer> comparator = getComparator();
        Returns:
        comparator
      • reverseComparator

        public static <T> java.util.Comparator<T> reverseComparator()
        A utility method for getting a type-safe reversed Comparator (the negation of comparator()). Use this method instead of REVERSE_COMPARATOR in order to insure type-safety ex: Comparator<Integer> comparator = getReversedComparator();
        Returns:
        comparator
      • emptyIterator

        public static <T> java.util.Iterator<T> emptyIterator()
      • eq

        public static boolean eq(java.lang.Object a,
                                 java.lang.Object b)
        returns true if all elements are equal, works with nulls
      • roundUp

        public static long roundUp(long number,
                                   long roundUpToMultipleOf)
      • extractMapEntryKey

        public static <K,V> Fun.Function1<K,java.util.Map.Entry<K,V>> extractMapEntryKey()
      • extractMapEntryValue

        public static <K,V> Fun.Function1<V,java.util.Map.Entry<K,V>> extractMapEntryValue()
      • extractNoTransform

        public static <K> Fun.Function1<K,K> extractNoTransform()
        returns function which always returns the value itself without transformation
      • compareInt

        public static int compareInt(int x,
                                     int y)
      • compareLong

        public static int compareLong(long x,
                                      long y)

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.