| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final TreeSet |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | addImplSet(final ThreadContext context, final RubySet set)
Overrides org.
|
| protected void | |
| public Comparator | comparator()
Implements java. Returns the comparator used to order the elements in this set,
or |
| public static RubySortedSet | create(final ThreadContext context, IRubyObject self, IRubyObject... ary)
Hides org. Creates a new set containing the given objects. |
| pack-priv static RubyClass | |
| protected boolean | |
| protected void | deleteImplIterator(final IRubyObject obj, final Iterator<E> it)
Overrides org.
|
| protected Set | |
| public Object | first()
Implements java. Returns the first (lowest) element currently in this set. |
| public IRubyObject | |
| public SortedSet | headSet(Object
high endpoint (exclusive) of the returned set toElement)Implements java. Returns a view of the portion of this set whose elements are
strictly less than |
| public IRubyObject | initialize_clone(ThreadContext context, IRubyObject[] args)
Overrides org.
|
| public IRubyObject | initialize_dup(ThreadContext context, IRubyObject orig)
Overrides org.
|
| public Iterator | iterator()
Overrides org. Implements java. Returns an iterator over the elements in this set. |
| public Object | last()
Implements java. Returns the last (highest) element currently in this set. |
| public IRubyObject | |
| public SortedSet | |
| public SortedSet | |
| public SortedSet | |
| public RubyArray | |
| public SortedSet | subSet(Object
low endpoint (inclusive) of the returned set fromElement, Object high endpoint (exclusive) of the returned set toElement)Implements java. Returns a view of the portion of this set whose elements range
from |
| public SortedSet | tailSet(Object
low endpoint (inclusive) of the returned set fromElement)Implements java. Returns a view of the portion of this set whose elements are
greater than or equal to |
| public RubyArray | to_a(final ThreadContext context)
Overrides org. Converts the set to an array. |
| pack-priv void |
| order | back to summary |
|---|---|
| private final TreeSet<IRubyObject> order | |
| RubySortedSet | back to summary |
|---|---|
| protected RubySortedSet(Ruby runtime, RubyClass klass) | |
| addImpl | back to summary |
|---|---|
| protected void addImpl(ThreadContext context, final IRubyObject obj) Overrides org.
| |
| addImplSet | back to summary |
|---|---|
| protected void addImplSet(final ThreadContext context, final RubySet set) Overrides org.
| |
| clearImpl | back to summary |
|---|---|
| protected void clearImpl(ThreadContext context) Overrides org.
| |
| comparator | back to summary |
|---|---|
| public Comparator Implements java. Doc from java. Returns the comparator used to order the elements in this set,
or
| |
| create | back to summary |
|---|---|
| public static RubySortedSet create(final ThreadContext context, IRubyObject self, IRubyObject... ary) Hides org. Doc from org. Creates a new set containing the given objects.
| |
| createSortedSetClass | back to summary |
|---|---|
| pack-priv static RubyClass createSortedSetClass(ThreadContext context, RubyClass Set) | |
| deleteImpl | back to summary |
|---|---|
| protected boolean deleteImpl(final IRubyObject obj) Overrides org.
| |
| deleteImplIterator | back to summary |
|---|---|
| protected void deleteImplIterator(final IRubyObject obj, final Iterator<E> it) Overrides org.
| |
| elementsOrdered | back to summary |
|---|---|
| protected Set Overrides org.
| |
| first | back to summary |
|---|---|
| public Object first() Implements java. Doc from java. Returns the first (lowest) element currently in this set.
| |
| firstValue | back to summary |
|---|---|
| public IRubyObject firstValue() | |
| headSet | back to summary |
|---|---|
| public SortedSet Implements java. Doc from java. Returns a view of the portion of this set whose elements are
strictly less than The returned set will throw an | |
| initialize_clone | back to summary |
|---|---|
| public IRubyObject initialize_clone(ThreadContext context, IRubyObject[] args) Overrides org.
| |
| initialize_dup | back to summary |
|---|---|
| public IRubyObject initialize_dup(ThreadContext context, IRubyObject orig) Overrides org.
| |
| iterator | back to summary |
|---|---|
| public Iterator Overrides org. Implements java. Doc from java. Returns an iterator over the elements in this set. The elements are returned in no particular order (unless this set is an instance of some class that provides a guarantee). | |
| last | back to summary |
|---|---|
| public Object last() Implements java. Doc from java. Returns the last (highest) element currently in this set.
| |
| lastValue | back to summary |
|---|---|
| public IRubyObject lastValue() | |
| rawHeadSet | back to summary |
|---|---|
| public SortedSet | |
| rawSubSet | back to summary |
|---|---|
| public SortedSet | |
| rawTailSet | back to summary |
|---|---|
| public SortedSet | |
| sort | back to summary |
|---|---|
public RubyArray
| |
| subSet | back to summary |
|---|---|
| public SortedSet Implements java. Doc from java. Returns a view of the portion of this set whose elements range
from The returned set will throw an | |
| tailSet | back to summary |
|---|---|
| public SortedSet Implements java. Doc from java. Returns a view of the portion of this set whose elements are
greater than or equal to The returned set will throw an | |
| to_a | back to summary |
|---|---|
| public RubyArray Overrides org. Doc from org. Converts the set to an array. The order of elements is uncertain.
| |
| unmarshal | back to summary |
|---|---|
| pack-priv void unmarshal() Overrides org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Iterator |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public Object | |
| public void | remove()
Overrides default java. Removes from the underlying collection the last element returned by this iterator (optional operation). |
| rawIterator | back to summary |
|---|---|
| private final Iterator<IRubyObject> rawIterator | |
| JavaIterator | back to summary |
|---|---|
| pack-priv JavaIterator() | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public Object next() Implements java. Doc from java. Returns the next element in the iteration. | |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(IRubyObject
the first object to be compared. obj1, IRubyObject the second object to be compared. obj2)Overrides org. Implements java. Compares its two arguments for order. |
| protected ThreadContext |
| runtime | back to summary |
|---|---|
| private final Ruby runtime | |
| OrderComparator | back to summary |
|---|---|
| pack-priv OrderComparator(final Ruby runtime) | |
| compare | back to summary |
|---|---|
| public int compare(IRubyObject obj1, IRubyObject obj2) Overrides org. Implements java. Doc from java. Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The implementor must ensure that
The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| context | back to summary |
|---|---|
| protected ThreadContext context() Overrides org.
| |