|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
java.util.AbstractCollection
java.util.AbstractSet
com.tangosol.util.NullImplementation.NullSet
public static class NullImplementation.NullSet
An immutable set which contains nothing.
| Field Summary | |
|---|---|
static java.util.Set |
INSTANCESince the set contains no information, only one ever has to exist. |
| Constructor Summary | |
|---|---|
NullImplementation.NullSet()Default constructor (for ExternalizableLite and PortableObject). |
|
| Method Summary | |
|---|---|
boolean |
add(java.lang.Object o)Ensures that this Collection contains the specified element. |
void |
clear()Removes all of the elements from this Collection. |
boolean |
contains(java.lang.Object o)Returns true if this Collection contains the specified element. |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.util.Iterator |
iterator()Returns an Iterator over the elements contained in this Collection. |
void |
readExternal(java.io.DataInput in)Restore the contents of this object by loading the object's state from the passed DataInput object. |
void |
readExternal(PofReader in)Restore the contents of a user type instance by reading its state using the specified PofReader object. |
boolean |
remove(java.lang.Object o)Removes a single instance of the specified element from this Collection, if it is present (optional operation). |
int |
size()Returns the number of elements in this Collection. |
java.lang.Object[] |
toArray()Returns an array containing all of the elements in this Set. |
void |
writeExternal(java.io.DataOutput out)Save the contents of this object by storing the object's state into the passed DataOutput object. |
void |
writeExternal(PofWriter out)Save the contents of a POF user type instance by writing its state using the specified PofWriter object. |
| Methods inherited from class java.util.AbstractSet |
|---|
removeAll |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, containsAll, isEmpty, retainAll, toArray, toString |
| Methods inherited from interface java.util.Set |
|---|
addAll, containsAll, isEmpty, retainAll, toArray |
| Field Detail |
|---|
public static final java.util.Set INSTANCE
| Constructor Detail |
|---|
public NullImplementation.NullSet()
| Method Detail |
|---|
public java.lang.Object[] toArray()
toArray in interface java.util.CollectiontoArray in interface java.util.SettoArray in class java.util.AbstractCollectionpublic java.util.Iterator iterator()
iterator in interface java.lang.Iterableiterator in interface java.util.Collectioniterator in interface java.util.Setiterator in class java.util.AbstractCollectionpublic int size()
size in interface java.util.Collectionsize in interface java.util.Setsize in class java.util.AbstractCollectionpublic boolean contains(java.lang.Object o)
e such that (o==null ? e==null : o.equals(e)).contains in interface java.util.Collectioncontains in interface java.util.Setcontains in class java.util.AbstractCollectiono - the object to search for in the setpublic boolean add(java.lang.Object o)
add in interface java.util.Collectionadd in interface java.util.Setadd in class java.util.AbstractCollectiono - element whose presence in this Collection is to be ensuredpublic boolean remove(java.lang.Object o)
e such that (o==null ? e==null : o.equals(e)), if the Collection contains one or more such elements. Returns true if the Collection contained the specified element (or equivalently, if the Collection changed as a result of the call).remove in interface java.util.Collectionremove in interface java.util.Setremove in class java.util.AbstractCollectiono - element to be removed from this Collection, if presentpublic void clear()
clear in interface java.util.Collectionclear in interface java.util.Setclear in class java.util.AbstractCollectionpublic boolean equals(java.lang.Object o)
equals in interface java.util.Collectionequals in interface java.util.Setequals in class java.util.AbstractSetpublic int hashCode()
hashCode in interface java.util.CollectionhashCode in interface java.util.SethashCode in class java.util.AbstractSet
public void readExternal(java.io.DataInput in)
throws java.io.IOException
readExternal in interface ExternalizableLitein - the DataInput stream to read data from in order to restore the state of this objectjava.io.IOException - if an I/O exception occursjava.io.NotActiveException - if the object is not in its initial state, and therefore cannot be deserialized into
public void writeExternal(java.io.DataOutput out)
throws java.io.IOException
writeExternal in interface ExternalizableLiteout - the DataOutput stream to write the state of this object tojava.io.IOException - if an I/O exception occurs
public void readExternal(PofReader in)
throws java.io.IOException
readExternal in interface PortableObjectin - the PofReader from which to read the object's statejava.io.IOException - if an I/O error occurs
public void writeExternal(PofWriter out)
throws java.io.IOException
writeExternal in interface PortableObjectout - the PofWriter to which to write the object's statejava.io.IOException - if an I/O error occurs
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||