Uses of Interface
de.renebergelt.quiterables.Queriable

Packages that use Queriable
  • Uses of Queriable in de.renebergelt.quiterables

    Modifier and Type
    Interface
    Description
    interface 
    Represents a grouped Queriable which has been ordered
    interface 
    Represents a Queriable which has been ordered
    Methods in de.renebergelt.quiterables that return Queriable
    Modifier and Type
    Method
    Description
    Query.array​(boolean[] array)
    Return a Queriable which wraps the given primitive-type boolean-array
    static Queriable<Byte>
    Query.array​(byte[] array)
    Return a Queriable which wraps the given primitive-type byte-array
    Query.array​(char[] array)
    Return a Queriable which wraps the given primitive-type char-array
    Query.array​(double[] array)
    Return a Queriable which wraps the given primitive-type double-array
    Query.array​(float[] array)
    Return a Queriable which wraps the given primitive-type float-array
    Query.array​(int[] array)
    Return a Queriable which wraps the given primitive-type int-array
    static Queriable<Long>
    Query.array​(long[] array)
    Return a Queriable which wraps the given primitive-type long-array
    Query.array​(short[] array)
    Return a Queriable which wraps the given primitive-type short-array
    static <T> Queriable<T>
    Query.array​(T[] array)
    Return a queriable object for the given array
    <TOut> Queriable<TOut>
    Queriable.cast​(Class<TOut> targetType)
    Cast each element of the enumeration to the given type and return an enumeration of this type (This is an unchecked cast, so if any element in the enumeration cannot be cast to the given type an exception will be thrown)
    Queriable.concat​(Iterable<T> toConcat)
    Return an enumeration which contains all elements of the current enumeration and all elements of the enumeration given as argument
    Queriable.defaultIfEmpty​(T defaultValue)
    Returns this enumeration itself if it contains any elements or if it is empty an enumeration only containing the given defaultElement
    Queriable.distinct()
    Returns an enumeration where each item of the enumeration appears exactly once (Equality is checked using the equals(...) method)
    Queriable.distinct​(Equivalence<T> equalityComparer)
    Returns an enumeration where each item of the enumeration appears exactly once (Equality is checked using the given equalityComparer)
    static <T> Queriable<T>
    QuIterables.empty()
    Returns a Queriable which does not contain any elements
    Queriable.except​(Iterable<T> elementsToSubtract)
    Returns an iterable which contains only the elements of this enumeration which do not exist in the given Iterable (Equality is checked using the equals(...) method)
    Queriable.except​(Iterable<T> elementsToSubtract, Equivalence<T> equalityComparer)
    Returns an iterable which contains only the elements of this enumeration which do not exist in the given Iterable (Equality is checked using the given equalityComparer)
    Queriable.intersect​(Iterable<T> intersectWith)
    Returns an iterable which contains the elements of this enumeration which also exist in the given Iterable (Equality is checked using the equals(...) method)
    Queriable.intersect​(Iterable<T> intersectWith, Equivalence<T> equalityComparer)
    Returns an iterable which contains the elements of this enumeration which also exist in the given Iterable (Equality is checked using the given equalityComparer)
    static <T> Queriable<T>
    Query.iterable​(Iterable<T> lst)
    Return a queriable object for the given iterable
    static <T> Queriable<T>
    Query.list​(List<T> lst)
    Return a queriable object for the given list
    <TOut> Queriable<TOut>
    Queriable.ofType​(Class<TOut> targetType)
    Return the elements of the enumeration which are of the requested type or can be cast to it
    QuIterables.query​(boolean[] array)
    Return a Queriable which wraps the given primitive-type boolean-array
    static Queriable<Byte>
    QuIterables.query​(byte[] array)
    Return a Queriable which wraps the given primitive-type byte-array
    QuIterables.query​(char[] array)
    Return a Queriable which wraps the given primitive-type char-array
    QuIterables.query​(double[] array)
    Return a Queriable which wraps the given primitive-type double-array
    QuIterables.query​(float[] array)
    Return a Queriable which wraps the given primitive-type float-array
    QuIterables.query​(int[] array)
    Return a Queriable which wraps the given primitive-type int-array
    static Queriable<Long>
    QuIterables.query​(long[] array)
    Return a Queriable which wraps the given primitive-type long-array
    QuIterables.query​(short[] array)
    Return a Queriable which wraps the given primitive-type short-array
    static <T> Queriable<T>
    QuIterables.query​(Iterable<T> it)
    Return a queriable object for the given iterable
    static <T> Queriable<T>
    QuIterables.query​(T[] array)
    Return a queriable object for the given array
    QuIterables.range​(int start, int end)
    Returns a Queriable which contains the numbers starting at start until end (inclusive, i.e.
    Queriable.reverse()
    Reverse the order of elements of this enumeration
    <TOut> Queriable<TOut>
    Queriable.select​(Selector<T,​TOut> selector)
    Transforms each element of the enumeration using a selector
    <TOut> Queriable<TOut>
    Queriable.selectMany​(Selector<T,​Iterable<TOut>> selector)
    Transform each element of the enumeration into another enumeration and combine all results to a single list
    Queriable.skip​(int amount)
    Skip the given amount of elements in the list and return a Queriable which starts at the (amount+1)th element or is empty if the enumeration did not contain more than amount elements
    Queriable.skipWhile​(Predicate<T> condition)
    Return a queriable which starts at the first element of the enumeration which does not satisfy the condition, if no such element exists the returned Queriable is empty
    Queriable.take​(int amount)
    Take the given amount of elements from the enumeration or take elements until the enumeration ends
    Queriable.takeWhile​(Predicate<T> condition)
    Take elements from the enumeration as long as they satisfy the condition or until the enumeration ends
    Queriable.union​(Iterable<T> toUnite)
    Return an enumeration which contains all elements of the current enumeration and all elements of the enumeration given as argument without duplicates (Equality is checked using the equals(...) method)
    Queriable.union​(Iterable<T> toUnite, Equivalence<T> equalityComparer)
    Return an enumeration which contains all elements of the current enumeration and all elements of the enumeration given as argument without duplicates (Equality is checked using the given equalityComparer)
    Queriable.where​(Predicate<T> predicate)
    Return all elements from the enumeration for which the predicate holds true or return an empty list if no such elements exist
  • Uses of Queriable in de.renebergelt.quiterables.grouping

    Modifier and Type
    Interface
    Description
    interface 
    Interface which allows easy chaining of the ListMatcher methods for grouped lists
    Modifier and Type
    Method
    Description
    GroupedQueriable.get​(GroupKey key)
    Return the elements of the group with the given group keys