|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--mascoptLib.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(mascoptLib.abstractGraph.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. |
mascoptLib.abstractGraph.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(mascoptLib.abstractGraph.MascoptFixedSet superSet)
Sets the supersets without verification. |
int |
size()
Describe size method here. |
Object[] |
toArray()
Describe toArray method here. |
mascoptLib.abstractGraph.MascoptObject[] |
toArray(mascoptLib.abstractGraph.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(mascoptLib.abstractGraph.MascoptFixedSet superSet)
add or
addAll.
superSet - the super set to use.| Method Detail |
public mascoptLib.abstractGraph.MascoptFixedSet getSuperSet()
public boolean isSubSet()
public boolean setSuperSet(mascoptLib.abstractGraph.MascoptFixedSet superSet)
superSet - the superSet to use for the set.public int hashCode()
hashCode method here.
hashCode in interface SethashCode in class Objectint valuepublic boolean equals(Object object)
equals method here.
equals in interface Setequals in class Objectobject - an Object value
boolean valuepublic boolean contains(Object object)
contains method here.
contains in interface Setobject - an Object value
boolean valuepublic int size()
size method here.
size in interface Setint valuepublic Object[] toArray()
toArray method here.
toArray in interface SetMascoptObject[] valuepublic Object[] toArray(Object[] objectArray)
toArray method here.
toArray in interface SetobjectArray - an Object[] value
Object[] valuepublic mascoptLib.abstractGraph.MascoptObject[] toArray(mascoptLib.abstractGraph.MascoptObject[] mascoptObjectArray)
toArray method here.
MascoptObject[] valuepublic Iterator iterator()
iterator method here.
iterator in interface SetIterator valuepublic boolean isEmpty()
isEmpty method here.
isEmpty in interface Setboolean valuepublic boolean containsAll(Collection collection)
containsAll method here.
containsAll in interface Setcollection - a Collection value
boolean valuepublic void free()
free in class MascoptObjectpublic static int countAllSets()
public String toString()
toString in class Objectpublic boolean add(Object object)
add in interface Setpublic boolean remove(Object object)
remove in interface Setpublic boolean addAll(Collection collection)
addAll in interface Setpublic void clear()
clear in interface Setpublic boolean removeAll(Collection collection)
removeAll in interface Setpublic boolean retainAll(Collection collection)
retainAll in interface Set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||