Package | Description |
---|---|
net.sf.rubycollect4j |
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.cycle(Block<? super E> block) |
void |
RubyContract.Enumerable.cycle(Block<? super E> block)
Generates a sequence from start element to end element and so on
infinitely.
|
void |
RubyEnumerable.cycle(Block<? super E> block) |
void |
RubyLazyEnumerator.cycle(int n,
Block<? super E> block) |
void |
RubyContract.Enumerable.cycle(int n,
Block<? super E> block)
Generates a sequence from start element to end element, repeat n times.
|
void |
RubyEnumerable.cycle(int n,
Block<? super E> block) |
RubyRange<E> |
RubyRange.each(Block<? super E> block)
Yields each element to the block.
|
RubyArray<E> |
RubyArray.each(Block<? super E> block)
Yields each element to the block.
|
RubyLazyEnumerator<E> |
RubyLazyEnumerator.each(Block<? super E> block)
Yields each element to the block.
|
RubyContract.Enumerable<E,N,Z> |
RubyContract.Enumerable.each(Block<? super E> block)
Yields each element to the block.
|
RubyEnumerable<E> |
RubyEnumerable.each(Block<? super E> block)
Yields each element to the block.
|
RubySet<E> |
RubySet.each(Block<? super E> block)
Yields each element to the block.
|
RubyEnumerator<E> |
RubyEnumerator.each(Block<? super E> block)
Yields each element to the block.
|
Ruby.Enumerable<E> |
Ruby.Enumerable.each(Block<? super E> block)
Yields each element to the block.
|
Ruby.LazyEnumerator<E> |
Ruby.LazyEnumerator.each(Block<? super E> block)
Yields each element to the block.
|
RubyDir |
RubyDir.each(Block<? super java.lang.String> block)
Yields each entry to the given block.
|
RubyString |
RubyString.eachByte(Block<java.lang.Byte> block)
Passes each byte in str to the given block.
|
RubyString |
RubyString.eachChar(Block<java.lang.String> block)
Passes each character in str to the given block.
|
RubyString |
RubyString.eachCodepoint(Block<java.lang.Integer> block)
Passes each codepoint in str to the given 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) |
RubyLazyEnumerator<E> |
RubyLazyEnumerator.eachEntry(Block<? super E> block)
Yields each element to the block.
|
RubyContract.Enumerable<E,N,Z> |
RubyContract.Enumerable.eachEntry(Block<? super E> block)
Yields each element to the block.
|
RubyEnumerable<E> |
RubyEnumerable.eachEntry(Block<? super E> block)
Yields each element to the block.
|
Ruby.Enumerable<E> |
Ruby.Enumerable.eachEntry(Block<? super E> block)
Yields each element to the block.
|
Ruby.LazyEnumerator<E> |
Ruby.LazyEnumerator.eachEntry(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.
|
RubyHash<K,V> |
RubyHash.eachKey(Block<? super K> block)
Yields each key to given block.
|
RubyString |
RubyString.eachLine(Block<java.lang.String> block)
Passes each line in str to the given block.
|
RubyString |
RubyString.eachLine(java.lang.String separator,
Block<java.lang.String> block)
Passes each line by given separator in str to the given 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) |
RubyHash<K,V> |
RubyHash.eachValue(Block<? super V> block)
Yields each value to given block.
|
E |
RubyArray.fetch(int index,
Block<java.lang.Integer> block)
Returns the element at an index.
|
static void |
RubyIO.foreach(java.lang.String path,
Block<java.lang.String> block)
Iterates a file line by line.
|
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. |
RubyLazyEnumerator<E> |
RubyLazyEnumerator.reverseEach(Block<? super E> block)
Iterates each element reversely by given block.
|
RubyContract.Enumerable<E,N,Z> |
RubyContract.Enumerable.reverseEach(Block<? super E> block)
Iterates each element reversely by given block.
|
RubyEnumerable<E> |
RubyEnumerable.reverseEach(Block<? super E> block)
Iterates each element reversely by given block.
|
Ruby.Enumerable<E> |
Ruby.Enumerable.reverseEach(Block<? super E> block)
Iterates each element reversely by given block.
|
Ruby.LazyEnumerator<E> |
Ruby.LazyEnumerator.reverseEach(Block<? super E> block)
Iterates each element reversely by given block.
|
RubyString |
RubyString.scan(java.lang.String regex,
Block<java.lang.String> block)
Both forms iterate through str, matching the regexp.
|
RubyString |
RubyString.scanGroups(java.lang.String regex,
Block<RubyArray<java.lang.String>> block)
Both forms iterate through str, matching the regexp.
|
RubyRange<E> |
RubyRange.step(int n,
Block<E> block)
Iterates over this
RubyRange and yields each nth element to the
block. |
RubyString |
RubyString.upto(java.lang.String otherStr,
Block<java.lang.String> block)
Iterates through successive values, starting at str and ending at otherStr
inclusive, passing each value in turn to the block.
|
RubyString |
RubyString.upto(java.lang.String otherStr,
boolean exclusive,
Block<java.lang.String> block)
Iterates through successive values, starting at str and ending at otherStr,
passing each value in turn to 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) |