|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.wala.util.intset.MutableMapping<T>
public class MutableMapping<T>
A bit set mapping based on an object array. This is not terribly efficient, but is useful for prototyping.
| Constructor Summary | |
|---|---|
MutableMapping()
Constructor MutableMapping. |
|
MutableMapping(java.lang.Object[] array)
Constructor for MutableMapping. |
|
| Method Summary | |
|---|---|
int |
add(T o)
Add an Object to the set of mapped objects. |
void |
deleteMappedObject(java.lang.Object n)
|
int |
getMappedIndex(java.lang.Object o)
|
T |
getMappedObject(int n)
|
int |
getMappingSize()
|
java.util.Collection<T> |
getObjects()
|
boolean |
hasMappedIndex(java.lang.Object o)
|
java.util.Iterator<T> |
iterator()
|
OrdinalSet<T> |
makeSingleton(int i)
|
void |
put(int i,
T o)
Add an object to the set of mapped objects at index i. |
void |
replace(T a,
T b)
Replace a in this mapping with b. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MutableMapping(java.lang.Object[] array)
java.lang.IllegalArgumentException - if array is nullpublic MutableMapping()
| Method Detail |
|---|
public T getMappedObject(int n)
getMappedObject in interface OrdinalSetMapping<T>public int getMappedIndex(java.lang.Object o)
getMappedIndex in interface OrdinalSetMapping<T>public boolean hasMappedIndex(java.lang.Object o)
hasMappedIndex in interface OrdinalSetMapping<T>public int getMappingSize()
getMappingSize in interface OrdinalSetMapping<T>public int add(T o)
add in interface OrdinalSetMapping<T>public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Iterator<T> iterator()
iterator in interface java.lang.Iterable<T>public OrdinalSet<T> makeSingleton(int i)
public void deleteMappedObject(java.lang.Object n)
n - public java.util.Collection<T> getObjects()
public void replace(T a,
T b)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void put(int i,
T o)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||