|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectmascoptLib.util.ObservableObject
mascoptLib.abstractGraph.MascoptObject
mascoptLib.abstractGraph.MascoptFixedSet
This class implements the concept of MascoptSet. A new implementation was needed in order to comply more closely with the object oriented way of doing things. Basically, a MascoptSet object is a MascoptObject object which contains a LinkedHashset to store objects. Advanced users can control the intialCapacity and the loadFactor of their sets, to deals with the size of their graphs.
Field Summary | |
static int |
initialCapacity
The initial capacity of a MascoptFixedSet. |
static float |
loadFactor
The load Factor of a MascoptFixedSet. |
Constructor Summary | |
MascoptFixedSet()
The constructor of a Mascopt Fixed Set. |
|
MascoptFixedSet(MascoptFixedSet superSet)
Constuctor for subsets. |
Method Summary | |
boolean |
add(Object object)
|
boolean |
addAll(Collection collection)
|
void |
clear()
|
boolean |
contains(Object object)
Describe contains method here. |
boolean |
containsAll(Collection collection)
Describe containsAll method here. |
static int |
countAllSets()
Return the number of sets currently in memory |
boolean |
equals(Object object)
Describe equals method here. |
void |
free()
Free memory when this object is linked. |
MascoptFixedSet |
getSuperSet()
Returns the super set of the object if exists. |
int |
hashCode()
Describe hashCode method here. |
boolean |
isEmpty()
Describe isEmpty method here. |
boolean |
isSubSet()
Says if the object is a subset of an other. |
Iterator |
iterator()
Describe iterator method here. |
boolean |
remove(Object object)
|
boolean |
removeAll(Collection collection)
|
boolean |
retainAll(Collection collection)
|
boolean |
setSuperSet(MascoptFixedSet superSet)
Sets the supersets without verification. |
int |
size()
Describe size method here. |
Object[] |
toArray()
Describe toArray method here. |
MascoptObject[] |
toArray(MascoptObject[] mascoptObjectArray)
Describe toArray method here. |
Object[] |
toArray(Object[] objectArray)
Describe toArray method here. |
String |
toString()
Object string output. |
Methods inherited from class mascoptLib.abstractGraph.MascoptObject |
copyValues, countAllObjects, deleteValue, deleteValue, existValue, existValue, getDoubleValue, getDoubleValue, getDouValue, getDouValue, getId, getIntegerValue, getIntegerValue, getIntValue, getIntValue, getName, getValue, getValue, getValueContexts, getValueDataType, getValueDataType, getValueEntries, notifyOnValueChange, removeAllValues, setDoubleValue, setDoubleValue, setDouValue, setDouValue, setIntegerValue, setIntegerValue, setIntValue, setIntValue, setName, setValue, setValue, setValue, setValue, setValue, setValue, update |
Methods inherited from class mascoptLib.util.ObservableObject |
addAddObserver, addRemoveObserver, addValueObserver, countAddObservers, countRemoveObservers, countValueObservers, deleteAddObserver, deleteAddObserver, deleteRemoveObserver, deleteRemoveObserver, deleteValueObserver, deleteValueObserver |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static int initialCapacity
public static float loadFactor
Constructor Detail |
public MascoptFixedSet()
public MascoptFixedSet(MascoptFixedSet superSet)
add
or
addAll
.
superSet
- the super set to use.Method Detail |
public MascoptFixedSet getSuperSet()
public boolean isSubSet()
public boolean setSuperSet(MascoptFixedSet superSet)
superSet
- the superSet to use for the set.public int hashCode()
hashCode
method here.
hashCode
in interface Set
int
valuepublic boolean equals(Object object)
equals
method here.
equals
in interface Set
object
- an Object
value
boolean
valuepublic boolean contains(Object object)
contains
method here.
contains
in interface Set
object
- an Object
value
boolean
valuepublic int size()
size
method here.
size
in interface Set
int
valuepublic Object[] toArray()
toArray
method here.
toArray
in interface Set
MascoptObject[]
valuepublic Object[] toArray(Object[] objectArray)
toArray
method here.
toArray
in interface Set
objectArray
- an Object[]
value
Object[]
valuepublic MascoptObject[] toArray(MascoptObject[] mascoptObjectArray)
toArray
method here.
MascoptObject[]
valuepublic Iterator iterator()
iterator
method here.
iterator
in interface Set
Iterator
valuepublic boolean isEmpty()
isEmpty
method here.
isEmpty
in interface Set
boolean
valuepublic boolean containsAll(Collection collection)
containsAll
method here.
containsAll
in interface Set
collection
- a Collection
value
boolean
valuepublic void free()
free
in class MascoptObject
public static int countAllSets()
public String toString()
public boolean add(Object object)
add
in interface Set
public boolean remove(Object object)
remove
in interface Set
public boolean addAll(Collection collection)
addAll
in interface Set
public void clear()
clear
in interface Set
public boolean removeAll(Collection collection)
removeAll
in interface Set
public boolean retainAll(Collection collection)
retainAll
in interface Set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |