Package | Description |
---|---|
net.sf.rubycollect4j | |
net.sf.rubycollect4j.iter | |
net.sf.rubycollect4j.packer | |
net.sf.rubycollect4j.util |
Modifier and Type | Method and Description |
---|---|
<S> RubyArray<S> |
RubyArray.assoc(S target)
Finds a List element which contains the target as the first element.
|
RubyArray<java.lang.Byte> |
RubyString.bytes()
Returns an
RubyArray of Byte in RubyString . |
RubyArray<java.lang.Integer> |
RubyString.codepoints()
Returns a
RubyArray of the Integer ordinals of the characters in
str. |
<S> RubyArray<S> |
RubyHash.collect(EntryTransformBlock<? super K,? super V,? extends S> block)
An adapter method.
|
<S> RubyArray<S> |
RubyEnumerable.collect(java.lang.String methodName,
java.lang.Object... args)
Transforms each element by given method.
|
<S> RubyArray<S> |
Ruby.Enumerable.collect(java.lang.String methodName,
java.lang.Object... args)
Transforms each element by given method.
|
<S> RubyArray<S> |
RubyEnumerable.collect(TransformBlock<? super E,? extends S> block)
Transforms each element by the block.
|
<S> RubyArray<S> |
Ruby.Enumerable.collect(TransformBlock<? super E,? extends S> block)
Transforms each element by the block.
|
<S> RubyArray<S> |
RubyHash.collectConcat(EntryTransformBlock<? super K,? super V,? extends java.util.List<S>> block)
An adapter method.
|
<S> RubyArray<S> |
RubyEnumerable.collectConcat(TransformBlock<? super E,? extends java.util.List<? extends S>> block)
Turns each element into a List and then flattens it.
|
<S> RubyArray<S> |
Ruby.Enumerable.collectConcat(TransformBlock<? super E,? extends java.util.List<? extends S>> block)
Turns each element into a List and then flattens it.
|
RubyArray<E> |
RubyArray.collectǃ(java.lang.String methodName,
java.lang.Object... args)
Transforms each element by given method name in self.
|
RubyArray<E> |
RubyArray.collectǃ(TransformBlock<? super E,? extends E> block)
Transforms each element in self.
|
RubyArray<E> |
RubyArray.combination(int n,
Block<? super RubyArray<E>> block)
Generates all combinations of length n with elements of this
RubyArray and yields them with a block. |
RubyArray<E> |
RubyArray.compact()
Removes all null elements and puts the rest into a new
RubyArray . |
RubyArray<E> |
RubyArray.compactǃ()
Removes all null elements in this
RubyArray . |
RubyArray<E> |
RubyArray.concat(java.util.Collection<? extends E> other)
Appends all elements of other Collection in this
RubyArray . |
static <E> RubyArray<E> |
RubyArray.copyOf(java.lang.Iterable<E> elements)
Returns a
RubyArray which copies the elements of given Iterable. |
RubyArray<E> |
RubyArray.deleteIf(BooleanBlock<? super E> block)
Deletes elements which are true returned by the block.
|
RubyArray<E> |
RubyEnumerable.drop(int n)
Drops the first n elements.
|
RubyArray<E> |
Ruby.Enumerable.drop(int n)
Drops the first n elements.
|
RubyArray<E> |
RubyEnumerable.dropWhile(BooleanBlock<? super E> block)
Drops the first n elements until an element gets false returned by the
block.
|
RubyArray<E> |
Ruby.Enumerable.dropWhile(BooleanBlock<? super E> block)
Drops the first n elements until an element gets false returned by the
block.
|
RubyArray<java.util.Map.Entry<K,V>> |
RubyHash.dropWhile(EntryBooleanBlock<? super K,? super V> block)
An adapter method.
|
RubyArray<E> |
RubyArray.each(Block<? super E> block)
Yields each element to the block.
|
RubyArray<E> |
RubyArray.eachIndex(Block<java.lang.Integer> block)
Yields each index of elements to the block.
|
RubyArray<E> |
RubyLazyEnumerator.entries() |
RubyArray<E> |
RubyContract.Enumerable.entries()
Puts each element into a
RubyArray . |
RubyArray<E> |
RubyEnumerable.entries() |
static RubyArray<java.lang.String> |
RubyDir.entries(java.lang.String path)
Puts entries of a folder into a
RubyArray . |
RubyArray<E> |
RubyArray.fill(E item)
Fills the whole
RubyArray with the element. |
RubyArray<E> |
RubyArray.fill(E item,
int start)
Starts to fill this
RubyArray from an index with the element. |
RubyArray<E> |
RubyArray.fill(E item,
int start,
int length)
Starts to fill part of this
RubyArray from an index with the
element. |
RubyArray<E> |
RubyArray.fill(int start,
int length,
TransformBlock<java.lang.Integer,? extends E> block)
Starts to fill part of this
RubyArray from an index with elements
returned by the block. |
RubyArray<E> |
RubyArray.fill(int start,
TransformBlock<java.lang.Integer,? extends E> block)
Starts to fill this
RubyArray from an index with elements returned
by the block. |
RubyArray<E> |
RubyArray.fill(TransformBlock<java.lang.Integer,? extends E> block)
Fills the whole
RubyArray with elements returned by the block. |
RubyArray<E> |
RubyEnumerable.findAll(BooleanBlock<? super E> block)
Finds all elements which are true returned by the block.
|
RubyArray<E> |
Ruby.Enumerable.findAll(BooleanBlock<? super E> block)
Finds all elements which are true returned by the block.
|
RubyArray<java.util.Map.Entry<K,V>> |
RubyHash.findAll(EntryBooleanBlock<? super K,? super V> block)
An adapter method.
|
RubyArray<E> |
RubyLazyEnumerator.first(int n) |
RubyArray<E> |
RubyContract.Enumerable.first(int n)
Returns the first n elements.
|
RubyArray<E> |
RubyEnumerable.first(int n) |
<S> RubyArray<S> |
RubyHash.flatMap(EntryTransformBlock<? super K,? super V,? extends java.util.List<S>> block)
An adapter method.
|
<S> RubyArray<S> |
RubyEnumerable.flatMap(TransformBlock<? super E,? extends java.util.List<? extends S>> block)
Equivalent to
RubyContract.Enumerable.collectConcat(TransformBlock) . |
<S> RubyArray<S> |
Ruby.Enumerable.flatMap(TransformBlock<? super E,? extends java.util.List<? extends S>> block)
Equivalent to
RubyContract.Enumerable.collectConcat(TransformBlock) . |
RubyArray<java.util.Map.Entry<K,V>> |
RubyHash.flatten()
Returns a
RubyEnumerator of entries of this RubyHash . |
<S> RubyArray<S> |
RubyArray.flatten()
|
<S> RubyArray<S> |
RubyArray.flatten(int n)
|
RubyArray<E> |
RubyArray.freeze()
Freezes this
RubyArray . |
static RubyArray<java.lang.String> |
RubyDir.glob(java.lang.String pattern)
Retrieves all paths of files of given url pattern.
|
RubyArray<E> |
RubyEnumerable.grep(java.lang.String regex)
Finds all elements which are matched by the regular expression.
|
RubyArray<E> |
Ruby.Enumerable.grep(java.lang.String regex)
Finds all elements which are matched by the regular expression.
|
<S> RubyArray<S> |
RubyHash.grep(java.lang.String regex,
EntryTransformBlock<? super K,? super V,? extends S> block)
An adapter method.
|
<S> RubyArray<S> |
RubyEnumerable.grep(java.lang.String regex,
java.lang.String methodName,
java.lang.Object... args)
Finds all elements which are matched by the regular expression and
invokes them by given method name.
|
<S> RubyArray<S> |
Ruby.Enumerable.grep(java.lang.String regex,
java.lang.String methodName,
java.lang.Object... args)
Finds all elements which are matched by the regular expression and
invokes them by given method name.
|
<S> RubyArray<S> |
RubyEnumerable.grep(java.lang.String regex,
TransformBlock<? super E,? extends S> block)
Finds all elements which are matched by the regular expression and
transforms them.
|
<S> RubyArray<S> |
Ruby.Enumerable.grep(java.lang.String regex,
TransformBlock<? super E,? extends S> block)
Finds all elements which are matched by the regular expression and
transforms them.
|
RubyArray<E> |
RubyArray.insert(int index,
E... args)
Starts to insert elements to this
RubyArray from given index. |
RubyArray<E> |
RubyArray.intersection(java.util.Collection<? extends E> other)
Puts all common elements into a new
RubyArray . |
RubyArray<E> |
RubyArray.keepIf(BooleanBlock<? super E> block)
Keeps elements which are true returned by the block.
|
RubyArray<K> |
RubyHash.keys()
|
RubyArray<E> |
RubyRange.last(int n)
Returns the last n elements of this
RubyRange . |
RubyArray<E> |
RubyArray.last(int n)
Returns last n elements of this
RubyArray . |
RubyArray<java.lang.String> |
RubyString.lines()
Returns a
RubyArray of lines in str split using the supplied record
separator (System.getProperty("line.separator") by default). |
RubyArray<java.lang.String> |
RubyString.lines(java.lang.String separator)
Returns a
RubyArray of lines in str split using given record
separator. |
<S> RubyArray<S> |
RubyHash.map(EntryTransformBlock<? super K,? super V,? extends S> block)
An adapter method.
|
<S> RubyArray<S> |
RubyEnumerable.map(java.lang.String methodName,
java.lang.Object... args)
Equivalent to
RubyContract.Enumerable.collect(String, Object...) . |
<S> RubyArray<S> |
Ruby.Enumerable.map(java.lang.String methodName,
java.lang.Object... args)
Equivalent to
RubyContract.Enumerable.collect(String, Object...) . |
<S> RubyArray<S> |
RubyEnumerable.map(TransformBlock<? super E,? extends S> block)
Equivalent to
RubyContract.Enumerable.collect(TransformBlock) . |
<S> RubyArray<S> |
Ruby.Enumerable.map(TransformBlock<? super E,? extends S> block)
Equivalent to
RubyContract.Enumerable.collect(TransformBlock) . |
RubyArray<E> |
RubyArray.mapǃ(java.lang.String methodName,
java.lang.Object... args)
Equivalent to
collectǃ(String, Object...) . |
RubyArray<E> |
RubyArray.mapǃ(TransformBlock<? super E,? extends E> block)
Equivalent to
collectǃ(TransformBlock) . |
RubyArray<E> |
RubyLazyEnumerator.minmax() |
RubyArray<E> |
RubyContract.Enumerable.minmax()
Finds the min and max elements.
|
RubyArray<E> |
RubyEnumerable.minmax() |
RubyArray<E> |
RubyLazyEnumerator.minmax(java.util.Comparator<? super E> comp) |
RubyArray<E> |
RubyContract.Enumerable.minmax(java.util.Comparator<? super E> comp)
Finds the min and max elements for outputs compared by the Comparator.
|
RubyArray<E> |
RubyEnumerable.minmax(java.util.Comparator<? super E> comp) |
<S> RubyArray<java.util.Map.Entry<K,V>> |
RubyHash.minmaxBy(java.util.Comparator<? super S> comp,
EntryTransformBlock<? super K,? super V,? extends S> block)
An adapter method.
|
<S> RubyArray<E> |
RubyLazyEnumerator.minmaxBy(java.util.Comparator<? super S> comp,
TransformBlock<? super E,? extends S> block) |
<S> RubyArray<E> |
RubyContract.Enumerable.minmaxBy(java.util.Comparator<? super S> comp,
TransformBlock<? super E,? extends S> block)
Finds the min and max elements for outputs transformed by the block and
compared by the Comparator.
|
<S> RubyArray<E> |
RubyEnumerable.minmaxBy(java.util.Comparator<? super S> comp,
TransformBlock<? super E,? extends S> block) |
<S> RubyArray<java.util.Map.Entry<K,V>> |
RubyHash.minmaxBy(EntryTransformBlock<? super K,? super V,? extends S> block)
An adapter method.
|
<S> RubyArray<E> |
RubyLazyEnumerator.minmaxBy(java.lang.String methodName,
java.lang.Object... args) |
<S> RubyArray<E> |
RubyContract.Enumerable.minmaxBy(java.lang.String methodName,
java.lang.Object... args)
Finds the min and max elements for outputs invoked by given method name.
|
<S> RubyArray<E> |
RubyEnumerable.minmaxBy(java.lang.String methodName,
java.lang.Object... args) |
<S> RubyArray<E> |
RubyLazyEnumerator.minmaxBy(TransformBlock<? super E,? extends S> block) |
<S> RubyArray<E> |
RubyContract.Enumerable.minmaxBy(TransformBlock<? super E,? extends S> block)
Finds the min and max elements for outputs transformed by the block.
|
<S> RubyArray<E> |
RubyEnumerable.minmaxBy(TransformBlock<? super E,? extends S> block) |
RubyArray<E> |
RubyArray.minus(java.util.Collection<? extends E> other)
Eliminates all elements from other Collection and puts the result into a
new
RubyArray . |
RubyArray<E> |
RubyArray.multiply(int n)
Multiplies this
RubyArray by n times. |
static <E> RubyArray<E> |
RubyCollections.newRubyArray()
Creates an empty
RubyArray . |
static <E> RubyArray<E> |
RubyCollections.newRubyArray(E... elements)
Creates a
RubyArray by given elements. |
static <E> RubyArray<E> |
RubyCollections.newRubyArray(java.lang.Iterable<E> iter)
Creates a
RubyArray by given Iterable. |
static <E> RubyArray<E> |
RubyCollections.newRubyArray(java.util.Iterator<E> iter)
Creates a
RubyArray by given Iterator. |
static <E> RubyArray<E> |
RubyCollections.newRubyArray(java.util.List<E> list)
Creates a
RubyArray by given List. |
static <E> RubyArray<E> |
RubyArray.of(java.util.List<E> list)
Returns a
RubyArray which wraps the given List. |
static RubyArray<java.lang.Boolean> |
RubyKernel.p(java.lang.Boolean... xs)
Calls System.out.println() and returns arguments.
|
static RubyArray<char[]> |
RubyKernel.p(char[]... xs)
Calls System.out.println() and returns arguments.
|
static RubyArray<java.lang.Character> |
RubyKernel.p(java.lang.Character... xs)
Calls System.out.println() and returns arguments.
|
static RubyArray<java.lang.Double> |
RubyKernel.p(java.lang.Double... xs)
Calls System.out.println() and returns arguments.
|
static RubyArray<java.lang.Float> |
RubyKernel.p(java.lang.Float... xs)
Calls System.out.println() and returns arguments.
|
static RubyArray<java.lang.Integer> |
RubyKernel.p(java.lang.Integer... xs)
Calls System.out.println() and returns arguments.
|
static RubyArray<java.lang.Long> |
RubyKernel.p(java.lang.Long... xs)
Calls System.out.println() and returns arguments.
|
static RubyArray<java.lang.Object> |
RubyKernel.p(java.lang.Object... xs)
Calls System.out.println() and returns arguments.
|
static RubyArray<java.lang.String> |
RubyKernel.p(java.lang.String... xs)
Calls System.out.println() and returns arguments.
|
RubyArray<RubyArray<E>> |
RubyLazyEnumerator.partition(BooleanBlock<? super E> block) |
RubyArray<RubyArray<E>> |
RubyContract.Enumerable.partition(BooleanBlock<? super E> block)
Divides elements into 2 groups by the given block.
|
RubyArray<RubyArray<E>> |
RubyEnumerable.partition(BooleanBlock<? super E> block) |
RubyArray<RubyArray<java.util.Map.Entry<K,V>>> |
RubyHash.partition(EntryBooleanBlock<? super K,? super V> block)
An adapter method.
|
RubyArray<java.lang.String> |
RubyString.partition(java.util.regex.Pattern pattern)
Searches pattern in the string and returns the part before it, the match,
and the part after it.
|
RubyArray<java.lang.String> |
RubyString.partition(java.lang.String sep)
Searches sep in the string and returns the part before it, the match, and
the part after it.
|
RubyArray<E> |
RubyArray.permutation(Block<? super RubyArray<E>> block)
Yields all permutations of this
RubyArray to the block. |
RubyArray<E> |
RubyArray.permutation(int n,
Block<? super RubyArray<E>> block)
Yields all permutations with length n of this
RubyArray to the
block. |
RubyArray<E> |
RubyArray.plus(java.util.Collection<? extends E> other)
Appends other Collection to self and puts the result into a new
RubyArray . |
RubyArray<E> |
RubyArray.pop(int n)
Removes and returns the last n element of this
RubyArray . |
RubyArray<RubyArray<E>> |
RubyArray.product(java.util.List<? extends E>... others)
Generates the production of self with other Lists.
|
RubyArray<RubyArray<E>> |
RubyArray.product(java.util.List<? extends java.util.List<? extends E>> others)
Generates the production of self with a List of Lists.
|
RubyArray<E> |
RubyArray.product(java.util.List<? extends java.util.List<? extends E>> others,
Block<RubyArray<E>> block)
Generates the productions of self with a List of Lists and yield them to
the block.
|
RubyArray<E> |
RubyArray.push(E... items)
Adds items to the end of this
RubyArray . |
RubyArray<E> |
RubyArray.push(E item)
Adds the item to the end of this
RubyArray . |
static RubyArray<java.lang.String> |
RubyCollections.qw(java.lang.String str)
Creates a
RubyArray of Strings. |
static <E> RubyArray<E> |
RubyCollections.ra()
Creates an empty
RubyArray . |
static <E> RubyArray<E> |
RubyCollections.ra(E... args)
Creates a
RubyArray by given elements. |
static <E> RubyArray<E> |
RubyCollections.ra(java.lang.Iterable<E> iter)
Creates a
RubyArray by given Iterable. |
static <E> RubyArray<E> |
RubyCollections.ra(java.util.Iterator<E> iter)
Creates a
RubyArray by given Iterator. |
static <E> RubyArray<E> |
RubyCollections.ra(java.util.List<E> list)
Creates a
RubyArray by given List. |
static <E> RubyArray<RubyArray<E>> |
RubyCollections.ra(RubyArray<E> rubyArray)
|
<S> RubyArray<S> |
RubyArray.rassoc(S target)
Finds a List element which contains target as the last element.
|
RubyArray<E> |
RubyEnumerable.reject(BooleanBlock<? super E> block)
Filters all elements which are true returned by the block.
|
RubyArray<E> |
Ruby.Enumerable.reject(BooleanBlock<? super E> block)
Filters all elements which are true returned by the block.
|
RubyArray<java.util.Map.Entry<K,V>> |
RubyHash.reject(EntryBooleanBlock<? super K,? super V> block)
An adapter method.
|
RubyArray<E> |
RubyArray.rejectǃ(BooleanBlock<? super E> block)
Deletes all elements which are false returned by the block.
|
RubyArray<E> |
RubyArray.repeatedCombination(int n,
Block<? super RubyArray<E>> block)
Generates all repeated combinations with length n of this
RubyArray
and yield to the block. |
RubyArray<E> |
RubyArray.repeatedPermutation(int n,
Block<? super RubyArray<E>> block)
Generates all repeated permutations with length n of this
RubyArray
and yield to the block. |
RubyArray<E> |
RubyArray.replace(java.util.Collection<? extends E> other)
Replaces all elements of self with other List.
|
RubyArray<E> |
RubyArray.reverse()
|
RubyArray<E> |
RubyArray.reverseǃ()
Reverses this
RubyArray . |
RubyArray<E> |
RubyArray.rotate()
Moves the first element to the last and puts them into a new
RubyArray . |
RubyArray<E> |
RubyArray.rotate(int n)
Moves the first element to the last n times and puts them into a new
RubyArray.
|
RubyArray<E> |
RubyArray.rotateǃ()
Moves the first element to the last.
|
RubyArray<E> |
RubyArray.rotateǃ(int n)
Moves the first element to the last n times.
|
RubyArray<java.lang.String> |
RubyString.rpartition(java.util.regex.Pattern pattern)
Searches Pattern in the string from the end of the string, and returns the
part before it, the match, and the part after it.
|
RubyArray<java.lang.String> |
RubyString.rpartition(java.lang.String sep)
Searches sep in the string from the end of the string, and returns the part
before it, the match, and the part after it.
|
RubyArray<E> |
RubyArray.sample(int n)
Picks n element randomly.
|
RubyArray<java.lang.String> |
RubyString.scan(java.lang.String regex)
Both forms iterate through str, matching the regexp.
|
RubyArray<RubyArray<java.lang.String>> |
RubyString.scanGroups(java.lang.String regex)
Both forms iterate through str, matching the regexp.
|
RubyArray<E> |
RubyEnumerable.select(BooleanBlock<? super E> block)
Equivalent to
RubyContract.Enumerable.findAll(BooleanBlock) |
RubyArray<E> |
Ruby.Enumerable.select(BooleanBlock<? super E> block)
Equivalent to
RubyContract.Enumerable.findAll(BooleanBlock) |
RubyArray<java.util.Map.Entry<K,V>> |
RubyHash.select(EntryBooleanBlock<? super K,? super V> block)
An adapter method.
|
RubyArray<E> |
RubyArray.selectǃ(BooleanBlock<? super E> block)
Selects elements which the result returned by the block are false.
|
RubyArray<E> |
RubyArray.shift(int n)
Removes and returns the first n element.
|
RubyArray<E> |
RubyArray.shuffle()
|
RubyArray<E> |
RubyArray.shuffleǃ()
Shuffles this
RubyArray . |
RubyArray<E> |
RubyArray.slice(int index,
int length)
|
RubyArray<E> |
RubyArray.sliceǃ(int index,
int length)
Slices an interval of this
RubyArray out of self. |
RubyArray<E> |
RubyLazyEnumerator.sort() |
RubyArray<E> |
RubyContract.Enumerable.sort()
Sorts elements and puts them into a
RubyArray . |
RubyArray<E> |
RubyEnumerable.sort() |
<S> RubyArray<E> |
RubyLazyEnumerator.sortBy(java.util.Comparator<? super E> comp1,
java.util.Comparator<? super S> comp2,
TransformBlock<? super E,? extends S> block) |
<S> RubyArray<E> |
RubyContract.Enumerable.sortBy(java.util.Comparator<? super E> comp1,
java.util.Comparator<? super S> comp2,
TransformBlock<? super E,? extends S> block)
Sorts elements by the ordering of outputs transformed by the block
induced by the Comparator for S and applies the Comparator for E again
before puts them into a
RubyArray . |
<S> RubyArray<E> |
RubyEnumerable.sortBy(java.util.Comparator<? super E> comp1,
java.util.Comparator<? super S> comp2,
TransformBlock<? super E,? extends S> block) |
<S> RubyArray<java.util.Map.Entry<K,V>> |
RubyHash.sortBy(java.util.Comparator<? super S> comp,
EntryTransformBlock<? super K,? super V,? extends S> block)
An adapter method.
|
<S> RubyArray<E> |
RubyLazyEnumerator.sortBy(java.util.Comparator<? super S> comp,
TransformBlock<? super E,? extends S> block) |
<S> RubyArray<E> |
RubyContract.Enumerable.sortBy(java.util.Comparator<? super S> comp,
TransformBlock<? super E,? extends S> block)
Sorts elements by the ordering of outputs transformed by the block
induced by the Comparator, then puts them into a
RubyArray . |
<S> RubyArray<E> |
RubyEnumerable.sortBy(java.util.Comparator<? super S> comp,
TransformBlock<? super E,? extends S> block) |
<S> RubyArray<java.util.Map.Entry<K,V>> |
RubyHash.sortBy(EntryTransformBlock<? super K,? super V,? extends S> block)
An adapter method.
|
<S> RubyArray<E> |
RubyLazyEnumerator.sortBy(java.lang.String methodName,
java.lang.Object... args) |
<S> RubyArray<E> |
RubyContract.Enumerable.sortBy(java.lang.String methodName,
java.lang.Object... args)
Sorts elements by the ordering of the outputs invoked by given method
name, then puts them into a
RubyArray . |
<S> RubyArray<E> |
RubyEnumerable.sortBy(java.lang.String methodName,
java.lang.Object... args) |
<S> RubyArray<E> |
RubyLazyEnumerator.sortBy(TransformBlock<? super E,? extends S> block) |
<S> RubyArray<E> |
RubyContract.Enumerable.sortBy(TransformBlock<? super E,? extends S> block)
Sorts elements by the ordering of outputs transformed by the block, then
puts them into a
RubyArray . |
<S> RubyArray<E> |
RubyEnumerable.sortBy(TransformBlock<? super E,? extends S> block) |
<S> RubyArray<E> |
RubyArray.sortByǃ(java.util.Comparator<? super E> comp1,
java.util.Comparator<? super S> comp2,
TransformBlock<? super E,? extends S> block)
Sorts elements of this
RubyArray by the ordering of outputs
transformed by the block induced by the Comparator for S and applies the
Comparator for E again. |
<S> RubyArray<E> |
RubyArray.sortByǃ(java.util.Comparator<? super S> comp,
TransformBlock<? super E,? extends S> block)
Sorts elements of this
RubyArray by the ordering of outputs
transformed by the block induced by the Comparator. |
<S> RubyArray<E> |
RubyArray.sortByǃ(java.lang.String methodName,
java.lang.Object... args)
Sorts elements of this
RubyArray by the ordering of outputs invoked
by given method name. |
<S> RubyArray<E> |
RubyArray.sortByǃ(TransformBlock<? super E,? extends S> block)
Sorts elements of this
RubyArray by the ordering of putputs
transformed by the block. |
RubyArray<E> |
RubyArray.sortǃ()
Sorts this
RubyArray . |
RubyArray<E> |
RubyArray.sortǃ(java.util.Comparator<? super E> comp)
Sorts this
RubyArray by given Comparator. |
RubyArray<java.lang.String> |
RubyString.split()
Divides str into substrings based on a whitespaces, returning a
RubyArray of these substrings. |
RubyArray<java.lang.String> |
RubyString.split(java.util.regex.Pattern pattern)
Divides str into substrings based on a Pattern, returning a
RubyArray of these substrings. |
RubyArray<java.lang.String> |
RubyString.split(java.util.regex.Pattern pattern,
int limit)
Divides str into substrings based on a Pattern, returning a
RubyArray of these substrings, at most that limit number of fields
will be returned. |
RubyArray<java.lang.String> |
RubyString.split(java.lang.String delimiter)
Divides str into substrings based on a delimiter, returning a
RubyArray of these substrings. |
RubyArray<java.lang.String> |
RubyString.split(java.lang.String delimiter,
int limit)
Divides str into substrings based on a delimiter, returning a
RubyArray of these substrings, at most that limit number of fields
will be returned. |
RubyArray<E> |
RubyEnumerable.take(int n)
Takes the first n elements.
|
RubyArray<E> |
Ruby.Enumerable.take(int n)
Takes the first n elements.
|
RubyArray<E> |
RubyEnumerable.takeWhile(BooleanBlock<? super E> block)
Takes elements until an element gets false returned by the block.
|
RubyArray<E> |
Ruby.Enumerable.takeWhile(BooleanBlock<? super E> block)
Takes elements until an element gets false returned by the block.
|
RubyArray<java.util.Map.Entry<K,V>> |
RubyHash.takeWhile(EntryBooleanBlock<? super K,? super V> block)
An adapter method.
|
RubyArray<E> |
RubyLazyEnumerator.toA() |
RubyArray<E> |
RubyContract.Enumerable.toA()
Puts all elements into a
RubyArray . |
RubyArray<E> |
RubyEnumerable.toA() |
<S> RubyArray<RubyArray<S>> |
RubyArray.transpose()
|
RubyArray<E> |
RubyArray.union(java.util.Collection<? extends E> other)
Puts all distinct elements into a new
RubyArray . |
RubyArray<E> |
RubyArray.uniq()
Filters elements uniquely and puts the result into a new
RubyArray . |
<S> RubyArray<E> |
RubyArray.uniq(java.lang.String methodName,
java.lang.Object... args)
Filters elements by the result invoked by given method name uniquely and
puts the result into a new
RubyArray . |
<S> RubyArray<E> |
RubyArray.uniq(TransformBlock<? super E,? extends S> block)
Filters elements by the result returned by the block uniquely and puts the
result into a new
RubyArray . |
RubyArray<E> |
RubyArray.uniqǃ()
Filters elements uniquely.
|
<S> RubyArray<E> |
RubyArray.uniqǃ(java.lang.String methodName,
java.lang.Object... args)
Filters elements by the result invoked by given method name uniquely and
puts the result into a new
RubyArray . |
<S> RubyArray<E> |
RubyArray.uniqǃ(TransformBlock<? super E,? extends S> block)
Filters elements by the result returned by the block uniquely.
|
RubyArray<java.lang.Object> |
RubyString.unpack(java.lang.String format)
Decodes str (which may contain binary data) according to the format string,
returning an array of each value extracted.
|
RubyArray<E> |
RubyArray.unshift(E item)
Puts an element at beginning of this
RubyArray |
RubyArray<V> |
RubyHash.values()
|
RubyArray<E> |
RubyArray.valuesAt(int... indices)
Puts all elements from given indices into a new
RubyArray . |
RubyArray<V> |
RubyHash.valuesAt(java.lang.Iterable<?> keys)
Finds all the values by given keys.
|
RubyArray<E> |
RubyArray.valuesAt(java.lang.Iterable<java.lang.Integer> indices)
Puts all elements from given indices into a new
RubyArray . |
RubyArray<V> |
RubyHash.valuesAt(java.lang.Object... keys)
Finds all the values by given keys.
|
RubyArray<RubyArray<E>> |
RubyEnumerable.zip(java.lang.Iterable<? extends E>... others)
Groups elements which get the same indices among all other Iterables into
RubyArray s. |
RubyArray<RubyArray<E>> |
Ruby.Enumerable.zip(java.lang.Iterable<? extends E>... others)
Groups elements which get the same indices among all other Iterables into
RubyArray s. |
RubyArray<RubyArray<E>> |
RubyEnumerable.zip(java.util.List<? extends java.lang.Iterable<? extends E>> others)
Groups elements which get the same indices among all other Lists into
RubyArray s. |
RubyArray<RubyArray<E>> |
Ruby.Enumerable.zip(java.util.List<? extends java.lang.Iterable<? extends E>> others)
Groups elements which get the same indices among all other Lists into
RubyArray s. |
Modifier and Type | Method and Description |
---|---|
<S> RubyEnumerator<java.util.Map.Entry<S,RubyArray<java.util.Map.Entry<K,V>>>> |
RubyHash.chunk(EntryTransformBlock<? super K,? super V,? extends S> block)
An adapter method.
|
<S> RubyLazyEnumerator<java.util.Map.Entry<S,RubyArray<E>>> |
RubyLazyEnumerator.chunk(java.lang.String methodName,
java.lang.Object... args)
Chunks elements into entries.
|
<S> RubyEnumerator<java.util.Map.Entry<S,RubyArray<E>>> |
RubyEnumerable.chunk(java.lang.String methodName,
java.lang.Object... args)
Chunks elements into entries.
|
<S> Ruby.Enumerator<java.util.Map.Entry<S,RubyArray<E>>> |
Ruby.Enumerable.chunk(java.lang.String methodName,
java.lang.Object... args)
Chunks elements into entries.
|
<S> Ruby.LazyEnumerator<java.util.Map.Entry<S,RubyArray<E>>> |
Ruby.LazyEnumerator.chunk(java.lang.String methodName,
java.lang.Object... args)
Chunks elements into entries.
|
<S> RubyLazyEnumerator<java.util.Map.Entry<S,RubyArray<E>>> |
RubyLazyEnumerator.chunk(TransformBlock<? super E,? extends S> block)
Chunks elements into entries.
|
<S> RubyEnumerator<java.util.Map.Entry<S,RubyArray<E>>> |
RubyEnumerable.chunk(TransformBlock<? super E,? extends S> block)
Chunks elements into entries.
|
<S> Ruby.Enumerator<java.util.Map.Entry<S,RubyArray<E>>> |
Ruby.Enumerable.chunk(TransformBlock<? super E,? extends S> block)
Chunks elements into entries.
|
<S> Ruby.LazyEnumerator<java.util.Map.Entry<S,RubyArray<E>>> |
Ruby.LazyEnumerator.chunk(TransformBlock<? super E,? extends S> block)
Chunks elements into entries.
|
RubyEnumerator<RubyArray<E>> |
RubyArray.combination(int n)
Generates all combinations with length n of this
RubyArray . |
RubyLazyEnumerator<RubyArray<E>> |
RubyLazyEnumerator.eachCons(int n)
Iterates each element and puts the element with n - 1 consecutive
elements into a
RubyArray . |
RubyEnumerator<RubyArray<E>> |
RubyEnumerable.eachCons(int n)
Iterates each element and puts the element with n - 1 consecutive
elements into a
RubyArray . |
Ruby.Enumerator<RubyArray<E>> |
Ruby.Enumerable.eachCons(int n)
Iterates each element and puts the element with n - 1 consecutive
elements into a
RubyArray . |
Ruby.LazyEnumerator<RubyArray<E>> |
Ruby.LazyEnumerator.eachCons(int n)
Iterates each element and puts the element with n - 1 consecutive
elements into a
RubyArray . |
RubyLazyEnumerator<RubyArray<E>> |
RubyLazyEnumerator.eachSlice(int n)
Slices elements into
RubyArray s with length n. |
RubyEnumerator<RubyArray<E>> |
RubyEnumerable.eachSlice(int n)
Slices elements into
RubyArray s with length n. |
Ruby.Enumerator<RubyArray<E>> |
Ruby.Enumerable.eachSlice(int n)
Slices elements into
RubyArray s with length n. |
Ruby.LazyEnumerator<RubyArray<E>> |
Ruby.LazyEnumerator.eachSlice(int n)
Slices elements into
RubyArray s with length n. |
<S> RubyHash<S,RubyArray<java.util.Map.Entry<K,V>>> |
RubyHash.groupBy(EntryTransformBlock<? super K,? super V,? extends S> block)
An adapter method.
|
<S> RubyHash<S,RubyArray<E>> |
RubyLazyEnumerator.groupBy(java.lang.String methodName,
java.lang.Object... args) |
<S> RubyHash<S,RubyArray<E>> |
RubyContract.Enumerable.groupBy(java.lang.String methodName,
java.lang.Object... args)
Puts elements with the same result S invoked by given method name into a
Entry<S, RubyArray<E>>y of a
RubyHash . |
<S> RubyHash<S,RubyArray<E>> |
RubyEnumerable.groupBy(java.lang.String methodName,
java.lang.Object... args) |
<S> RubyHash<S,RubyArray<E>> |
RubyLazyEnumerator.groupBy(TransformBlock<? super E,? extends S> block) |
<S> RubyHash<S,RubyArray<E>> |
RubyContract.Enumerable.groupBy(TransformBlock<? super E,? extends S> block)
Puts elements with the same result S returned by the block into a
Entry<S, RubyArray<E>>y of a
RubyHash . |
<S> RubyHash<S,RubyArray<E>> |
RubyEnumerable.groupBy(TransformBlock<? super E,? extends S> block) |
RubyArray<RubyArray<E>> |
RubyLazyEnumerator.partition(BooleanBlock<? super E> block) |
RubyArray<RubyArray<E>> |
RubyContract.Enumerable.partition(BooleanBlock<? super E> block)
Divides elements into 2 groups by the given block.
|
RubyArray<RubyArray<E>> |
RubyEnumerable.partition(BooleanBlock<? super E> block) |
RubyArray<RubyArray<java.util.Map.Entry<K,V>>> |
RubyHash.partition(EntryBooleanBlock<? super K,? super V> block)
An adapter method.
|
RubyEnumerator<RubyArray<E>> |
RubyArray.permutation()
Generates a
RubyEnumerator which contains all permutations of this
RubyArray . |
RubyEnumerator<RubyArray<E>> |
RubyArray.permutation(int n)
Generates a
RubyEnumerator which contains all permutations with
length n of this RubyArray . |
RubyArray<RubyArray<E>> |
RubyArray.product(java.util.List<? extends E>... others)
Generates the production of self with other Lists.
|
RubyArray<RubyArray<E>> |
RubyArray.product(java.util.List<? extends java.util.List<? extends E>> others)
Generates the production of self with a List of Lists.
|
static <E> RubyArray<RubyArray<E>> |
RubyCollections.ra(RubyArray<E> rubyArray)
|
RubyEnumerator<RubyArray<E>> |
RubyArray.repeatedCombination(int n)
Generates all repeated combinations of this
RubyArray . |
RubyEnumerator<RubyArray<E>> |
RubyArray.repeatedPermutation(int n)
Generates all repeated permutations with length n of this
RubyArray
. |
RubyArray<RubyArray<java.lang.String>> |
RubyString.scanGroups(java.lang.String regex)
Both forms iterate through str, matching the regexp.
|
RubyLazyEnumerator<RubyArray<E>> |
RubyLazyEnumerator.sliceBefore(BooleanBlock<? super E> block)
|
RubyEnumerator<RubyArray<E>> |
RubyEnumerable.sliceBefore(BooleanBlock<? super E> block)
|
Ruby.Enumerator<RubyArray<E>> |
Ruby.Enumerable.sliceBefore(BooleanBlock<? super E> block)
|
Ruby.LazyEnumerator<RubyArray<E>> |
Ruby.LazyEnumerator.sliceBefore(BooleanBlock<? super E> block)
|
RubyEnumerator<RubyArray<java.util.Map.Entry<K,V>>> |
RubyHash.sliceBefore(EntryBooleanBlock<? super K,? super V> block)
An adapter method.
|
RubyLazyEnumerator<RubyArray<E>> |
RubyLazyEnumerator.sliceBefore(java.lang.String regex)
|
RubyEnumerator<RubyArray<E>> |
RubyEnumerable.sliceBefore(java.lang.String regex)
|
Ruby.Enumerator<RubyArray<E>> |
Ruby.Enumerable.sliceBefore(java.lang.String regex)
|
Ruby.LazyEnumerator<RubyArray<E>> |
Ruby.LazyEnumerator.sliceBefore(java.lang.String regex)
|
<S> RubyArray<RubyArray<S>> |
RubyArray.transpose()
|
RubyLazyEnumerator<RubyArray<E>> |
RubyLazyEnumerator.zip(java.lang.Iterable<? extends E>... others)
Groups elements which get the same indices among all other Iterables into
RubyArray s. |
RubyArray<RubyArray<E>> |
RubyEnumerable.zip(java.lang.Iterable<? extends E>... others)
Groups elements which get the same indices among all other Iterables into
RubyArray s. |
RubyArray<RubyArray<E>> |
Ruby.Enumerable.zip(java.lang.Iterable<? extends E>... others)
Groups elements which get the same indices among all other Iterables into
RubyArray s. |
Ruby.LazyEnumerator<RubyArray<E>> |
Ruby.LazyEnumerator.zip(java.lang.Iterable<? extends E>... others)
Groups elements which get the same indices among all other Iterables into
RubyArray s. |
RubyLazyEnumerator<RubyArray<E>> |
RubyLazyEnumerator.zip(java.util.List<? extends java.lang.Iterable<? extends E>> others)
Groups elements which get the same indices among all other Lists into
RubyArray s. |
RubyArray<RubyArray<E>> |
RubyEnumerable.zip(java.util.List<? extends java.lang.Iterable<? extends E>> others)
Groups elements which get the same indices among all other Lists into
RubyArray s. |
RubyArray<RubyArray<E>> |
Ruby.Enumerable.zip(java.util.List<? extends java.lang.Iterable<? extends E>> others)
Groups elements which get the same indices among all other Lists into
RubyArray s. |
Ruby.LazyEnumerator<RubyArray<E>> |
Ruby.LazyEnumerator.zip(java.util.List<? extends java.lang.Iterable<? extends E>> others)
Groups elements which get the same indices among all other Lists into
RubyArray s. |
Modifier and Type | Method and Description |
---|---|
static <E> RubyHash<E,E> |
RubyCollections.Hash(RubyArray<? extends java.util.List<E>> lists)
|
static <E> RubyArray<RubyArray<E>> |
RubyCollections.ra(RubyArray<E> rubyArray)
|
Modifier and Type | Method and Description |
---|---|
RubyArray<E> |
RubyArray.combination(int n,
Block<? super RubyArray<E>> block)
Generates all combinations of length n with elements of this
RubyArray and yields them with a block. |
void |
RubyLazyEnumerator.eachCons(int n,
Block<? super RubyArray<E>> block) |
void |
RubyContract.Enumerable.eachCons(int n,
Block<? super RubyArray<E>> block)
Iterates each element and yields the element with n - 1 consecutive
elements to the block.
|
void |
RubyEnumerable.eachCons(int n,
Block<? super RubyArray<E>> block) |
void |
Ruby.Enumerable.eachCons(int n,
Block<? super RubyArray<E>> block) |
void |
RubyLazyEnumerator.eachSlice(int n,
Block<? super RubyArray<E>> block) |
void |
RubyContract.Enumerable.eachSlice(int n,
Block<? super RubyArray<E>> block)
Slices elements into
RubyArray s with length n and yield them to
the block. |
void |
RubyEnumerable.eachSlice(int n,
Block<? super RubyArray<E>> block) |
RubyArray<E> |
RubyArray.permutation(Block<? super RubyArray<E>> block)
Yields all permutations of this
RubyArray to the block. |
RubyArray<E> |
RubyArray.permutation(int n,
Block<? super RubyArray<E>> block)
Yields all permutations with length n of this
RubyArray to the
block. |
RubyArray<E> |
RubyArray.product(java.util.List<? extends java.util.List<? extends E>> others,
Block<RubyArray<E>> block)
Generates the productions of self with a List of Lists and yield them to
the block.
|
RubyArray<E> |
RubyArray.repeatedCombination(int n,
Block<? super RubyArray<E>> block)
Generates all repeated combinations with length n of this
RubyArray
and yield to the block. |
RubyArray<E> |
RubyArray.repeatedPermutation(int n,
Block<? super RubyArray<E>> block)
Generates all repeated permutations with length n of this
RubyArray
and yield to the block. |
RubyString |
RubyString.scanGroups(java.lang.String regex,
Block<RubyArray<java.lang.String>> block)
Both forms iterate through str, matching the regexp.
|
RubyString |
RubyString.scrub(TransformBlock<RubyArray<java.lang.Byte>,java.lang.String> block)
If the string is invalid byte sequence then replace invalid bytes with
returned value of the block.
|
RubyString |
RubyString.scrubǃ(TransformBlock<RubyArray<java.lang.Byte>,java.lang.String> block)
If the string is invalid byte sequence then replace invalid bytes with
returned value of the block.
|
void |
RubyLazyEnumerator.zip(java.util.List<? extends java.lang.Iterable<? extends E>> others,
Block<? super RubyArray<E>> block) |
void |
RubyContract.Enumerable.zip(java.util.List<? extends java.lang.Iterable<? extends E>> others,
Block<? super RubyArray<E>> block)
Groups elements which get the same indices among all other Iterables into
RubyArray s and yields them to the block. |
void |
RubyEnumerable.zip(java.util.List<? extends java.lang.Iterable<? extends E>> others,
Block<? super RubyArray<E>> block) |
Modifier and Type | Method and Description |
---|---|
RubyArray<E> |
RepeatedCombinationIterator.next() |
RubyArray<E> |
CombinationIterator.next() |
RubyArray<E> |
EachConsIterator.next() |
RubyArray<E> |
ZipIterator.next() |
RubyArray<E> |
PermutationIterator.next() |
RubyArray<E> |
EachSliceIterator.next() |
RubyArray<E> |
RepeatedPermutationIterator.next() |
RubyArray<E> |
ProductIterator.next() |
RubyArray<E> |
SliceBeforeIterator.next() |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<RubyArray<E>> |
SliceBeforeIterable.iterator() |
java.util.Iterator<RubyArray<E>> |
RepeatedPermutationIterable.iterator() |
java.util.Iterator<RubyArray<E>> |
PermutationIterable.iterator() |
java.util.Iterator<RubyArray<E>> |
ProductIterable.iterator() |
java.util.Iterator<RubyArray<E>> |
ZipIterable.iterator() |
java.util.Iterator<RubyArray<E>> |
EachConsIterable.iterator() |
java.util.Iterator<RubyArray<E>> |
EachSliceIterable.iterator() |
java.util.Iterator<RubyArray<E>> |
RepeatedCombinationIterable.iterator() |
java.util.Iterator<RubyArray<E>> |
CombinationIterable.iterator() |
java.util.Iterator<java.util.Map.Entry<K,RubyArray<E>>> |
ChunkIterable.iterator() |
java.util.Map.Entry<K,RubyArray<E>> |
ChunkIterator.next() |
Modifier and Type | Method and Description |
---|---|
static RubyArray<java.lang.Object> |
Unpacker.unpack(java.lang.String format,
java.lang.String str)
Unpacks a String into a
RubyArray of String. |
Modifier and Type | Method and Description |
---|---|
static RubyArray<java.lang.Byte> |
ByteUtil.toList(byte[] bytes)
Converts a byte array to a
RubyArray of Byte. |