public class ObjectSet extends Object
ObjectInfo instances.| Constructor and Description |
|---|
ObjectSet() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears out the contents of this set.
|
boolean |
contains(ObjectInfo info)
Returns true if the specified object is in the set, false if it is
not.
|
ObjectInfo |
get(int index)
Returns the object with the specified index.
|
boolean |
insert(ObjectInfo info)
Inserts the supplied object into the set.
|
void |
remove(int index)
Removes the object at the specified index.
|
boolean |
remove(ObjectInfo info)
Removes the specified object from the set.
|
int |
size()
Returns the number of objects in this set.
|
ObjectInfo[] |
toArray()
Converts the contents of this object set to an array.
|
String |
toString() |
public boolean insert(ObjectInfo info)
public boolean contains(ObjectInfo info)
public int size()
public ObjectInfo get(int index)
public void remove(int index)
public boolean remove(ObjectInfo info)
public void clear()
public ObjectInfo[] toArray()
Copyright © 2015. All rights reserved.