| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| private abstract static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv RubyHash | |
| private static final byte[] |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public RubySet | |
| public boolean | add(Object
element to be added to this set element)Implements java. Adds the specified element to this set if it is not already present (optional operation). |
| public IRubyObject | add_p(final ThreadContext context, IRubyObject obj)
Adds the given object to the set and returns self. |
| public boolean | addAll(Collection<E>
collection containing elements to be added to this set coll)Implements java. Adds all of the elements in the specified collection to this set if they're not already present (optional operation). |
| private void | |
| protected void | |
| protected void | |
| protected void | |
| private boolean | |
| pack-priv final void | |
| pack-priv final void | |
| pack-priv final void | |
| public IRubyObject | |
| public void | clear()
Implements java. Removes all of the elements from this set (optional operation). |
| public void | |
| protected void | |
| protected void | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public boolean | contains(Object
element whose presence in this set is to be tested o)Implements java. Returns |
| public boolean | containsAll(Collection<E>
collection to be checked for containment in this set coll)Implements java. Returns |
| pack-priv final boolean | |
| public static RubySet | create(final ThreadContext context, IRubyObject self, IRubyObject... ary)
Creates a new set containing the given objects. |
| pack-priv static RubyClass | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | delete_p(final ThreadContext context, IRubyObject obj)
Deletes the given object from the set and returns self. |
| protected boolean | |
| protected void | |
| public IRubyObject | disjoint_p(final ThreadContext context, IRubyObject setArg)
Returns true if the set and the given set have no element in common. |
| public IRubyObject | divide(ThreadContext context, final Block block)
Divides the set into a set of subsets according to the commonality defined by the given block. |
| private IRubyObject | |
| private static IRubyObject | |
| public IRubyObject | |
| protected final Set | |
| protected Set | |
| public IRubyObject | |
| public boolean | eql(IRubyObject otherArg)
Overrides org. Implements org. method used for Hash key comparison (specialized for String, Symbol and Fixnum) |
| public RubySet | |
| public IRubyObject | |
| public RubySet | |
| private void | flattenMerge(final ThreadContext context, final IRubyObject setArg, final IdentityHashMap<K, V> seen)
|
| public IRubyObject | |
| pack-priv static RubyModule | |
| public RubyFixnum | hash(ThreadContext
the current thread context context)Overrides org. Will return the hash code of this object. |
| public RubyBoolean | include_p(final ThreadContext context, IRubyObject obj)
Returns true if the set contains the given object. |
| public IRubyObject | |
| public IRubyObject | |
| protected IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| pack-priv final RubySet | |
| private IRubyObject | |
| public RubyString | inspect(ThreadContext context)
Overrides org. Overrides default org. Returns a string containing a human-readable representation of obj. |
| private RubyString | |
| private static RubyString | |
| private RubyString | |
| private void | |
| public IRubyObject | instance_variable_set(IRubyObject
of ivar name, IRubyObject to set value)Overrides org. rb_obj_ivar_set call-seq: obj.instance_variable_set(symbol, obj) => obj Sets the instance variable names by symbol to object, thereby frustrating the efforts of the class's author to attempt to provide proper encapsulation. |
| public boolean | |
| public IRubyObject | intersect_p(final ThreadContext context, IRubyObject setArg)
Returns true if the set and the given set have at least one element in common. |
| pack-priv IRubyObject | |
| public boolean | |
| public Iterator | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| protected final void | |
| protected final void | |
| public static RubySet | |
| public static RubySet | |
| private static RubySet | newSet(final ThreadContext context, final RubyClass metaClass, final RubyArray<T extends IRubyObject> elements)
|
| pack-priv RubySet | Returns: a new Setthe current runtime runtime)Construct a new Set with the same class as this one. |
| public IRubyObject | op_and(final ThreadContext context, IRubyObject enume)
Returns a new set built by merging the set and the elements of the given enumerable object. |
| public IRubyObject | |
| public IRubyObject | op_diff(final ThreadContext context, IRubyObject enume)
Returns a new set built by duplicating the set, removing every element that appears in the given enumerable object. |
| public IRubyObject | |
| public IRubyObject | op_equal(ThreadContext context, IRubyObject other)
Overrides org. Implements org. rb_obj_equal Will by default use identity equality to compare objects. |
| public IRubyObject | op_or(final ThreadContext context, IRubyObject enume)
Returns a new set built by merging the set and the elements of the given enumerable object. |
| public IRubyObject | op_xor(final ThreadContext context, IRubyObject enume)
Returns a new set containing elements exclusive between the set and the given enumerable object. |
| public IRubyObject | |
| public IRubyObject | |
| public Iterator | |
| public IRubyObject | |
| public RubySet | |
| public RubySet | rb_merge(final ThreadContext context, IRubyObject... args)
Merges the elements of the given enumerable object to the set and returns self. |
| public IRubyObject | |
| public boolean | remove(Object
object to be removed from this set, if present element)Implements java. Removes the specified element from this set if it is present (optional operation). |
| public boolean | removeAll(Collection<E>
collection containing elements to be removed from this set coll)Implements java. Removes from this set all of its elements that are contained in the specified collection (optional operation). |
| public RubySet | replace(final ThreadContext context, IRubyObject enume)
Replaces the contents of the set with the contents of the given enumerable object and returns self. |
| public IRubyObject | |
| public boolean | retainAll(Collection<E>
collection containing elements to be retained in this set coll)Implements java. Retains only the elements in this set that are contained in the specified collection (optional operation). |
| public IRubyObject | |
| pack-priv final void | |
| private static JavaSites. | sites(ThreadContext context)
Hides org. Retrieve the call sites for this class. |
| private static IRubyObject | size(ThreadContext context, RubySet recv, IRubyObject[] args)
A size method suitable for lambda method reference implementation of |
| public int | |
| public IRubyObject | |
| public IRubyObject | subtract(final ThreadContext context, IRubyObject enume)
Deletes every element that appears in the given enumerable object and returns self. |
| public IRubyObject | |
| public IRubyObject | |
| public RubyArray | to_a(final ThreadContext context)
Overrides org. Converts the set to an array. |
| public RubySet | |
| public RubySet | |
| public Object[] | toArray()
Implements java. Returns an array containing all of the elements in this set. |
| public Object[] | toArray(final Object[]
the array into which the elements of this set are to be
stored, if it is big enough; otherwise, a new array of the same
runtime type is allocated for this purpose. ary)Implements java. Returns an array containing all of the elements in this set; the runtime type of the returned array is that of the specified array. |
| pack-priv static IRubyObject | |
| pack-priv final IRubyObject | |
| pack-priv void | |
| public IRubyObject |