public class TShortSetDecorator
extends java.util.AbstractSet<java.lang.Short>
implements java.util.Set<java.lang.Short>, java.io.Externalizable
Modifier and Type | Field and Description |
---|---|
protected TShortSet |
_set
the wrapped primitive set
|
Constructor and Description |
---|
TShortSetDecorator()
FOR EXTERNALIZATION ONLY!!
|
TShortSetDecorator(TShortSet set)
Creates a wrapper that decorates the specified primitive set.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.lang.Short value)
Inserts a value into the set.
|
void |
clear()
Empties the set.
|
boolean |
contains(java.lang.Object o) |
boolean |
equals(java.lang.Object other)
Compares this set with another set for equality of their stored
entries.
|
TShortSet |
getSet()
Returns a reference to the set wrapped by this decorator.
|
boolean |
isEmpty()
Indicates whether set has any entries.
|
java.util.Iterator<java.lang.Short> |
iterator()
Creates an iterator over the values of the set.
|
void |
readExternal(java.io.ObjectInput in) |
boolean |
remove(java.lang.Object value)
Deletes a value from the set.
|
int |
size()
Returns the number of entries in the set.
|
void |
writeExternal(java.io.ObjectOutput out) |
addAll, containsAll, retainAll, toArray, toArray, toString
protected TShortSet _set
public TShortSetDecorator()
public TShortSetDecorator(TShortSet set)
set
- the TShortSet to wrap.public TShortSet getSet()
public boolean add(java.lang.Short value)
add
in interface java.util.Collection<java.lang.Short>
add
in interface java.util.Set<java.lang.Short>
add
in class java.util.AbstractCollection<java.lang.Short>
value
- true if the set was modified by the insertionpublic boolean equals(java.lang.Object other)
equals
in interface java.util.Collection<java.lang.Short>
equals
in interface java.util.Set<java.lang.Short>
equals
in class java.util.AbstractSet<java.lang.Short>
other
- an Object
valuepublic void clear()
clear
in interface java.util.Collection<java.lang.Short>
clear
in interface java.util.Set<java.lang.Short>
clear
in class java.util.AbstractCollection<java.lang.Short>
public boolean remove(java.lang.Object value)
remove
in interface java.util.Collection<java.lang.Short>
remove
in interface java.util.Set<java.lang.Short>
remove
in class java.util.AbstractCollection<java.lang.Short>
value
- an Object
valuepublic java.util.Iterator<java.lang.Short> iterator()
iterator
in interface java.lang.Iterable<java.lang.Short>
iterator
in interface java.util.Collection<java.lang.Short>
iterator
in interface java.util.Set<java.lang.Short>
iterator
in class java.util.AbstractCollection<java.lang.Short>
public int size()
size
in interface java.util.Collection<java.lang.Short>
size
in interface java.util.Set<java.lang.Short>
size
in class java.util.AbstractCollection<java.lang.Short>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<java.lang.Short>
isEmpty
in interface java.util.Set<java.lang.Short>
isEmpty
in class java.util.AbstractCollection<java.lang.Short>
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection<java.lang.Short>
contains
in interface java.util.Set<java.lang.Short>
contains
in class java.util.AbstractCollection<java.lang.Short>
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException