|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.space4j.implementation.SimpleSpace
public class SimpleSpace
A trivial implementation of Space, in other words, our space just use a Map.
| Constructor Summary | |
|---|---|
SimpleSpace()
Initializes the SimpleSpace. |
|
SimpleSpace(java.util.Map<java.lang.Object,java.lang.Object> map)
Initializes the SimpleSpace with a Map. |
|
| Method Summary | |
|---|---|
boolean |
check(java.lang.Object key)
Checks whehter an object exists with the following key. |
java.lang.Object |
get(java.lang.Object key)
Gets the Object stored in this Space with this key. |
IndexManager |
getIndexManager()
Returns the IndexManager in this space. |
java.util.Iterator<java.lang.Object> |
getIterator(java.lang.Object key)
Returns an iterator of the underlying collection or map object. |
java.util.Iterator<java.lang.Object> |
getKeyIterator(java.lang.Object key)
Returns an iterator of the keys of the underlying map object. |
void |
put(java.lang.Object key,
java.lang.Object obj)
Puts an Object in this Space with this key. |
boolean |
remove(java.lang.Object key)
Removes an Object from this Space with this key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleSpace()
public SimpleSpace(java.util.Map<java.lang.Object,java.lang.Object> map)
| Method Detail |
|---|
public java.lang.Object get(java.lang.Object key)
Space
get in interface Spacekey - The key to retrieve the Object from the Space.
public void put(java.lang.Object key,
java.lang.Object obj)
Space
put in interface Spacekey - The key to store the Objectobj - The object to storepublic boolean remove(java.lang.Object key)
Space
remove in interface Spacepublic java.util.Iterator<java.lang.Object> getIterator(java.lang.Object key)
Space
getIterator in interface Spacekey - The key to retrieve the Object from the Space.
public java.util.Iterator<java.lang.Object> getKeyIterator(java.lang.Object key)
Space
getKeyIterator in interface Spacekey - The key to retrieve the Object from the Space.
public boolean check(java.lang.Object key)
Space
check in interface Spacekey - The key to check
public IndexManager getIndexManager()
Space
getIndexManager in interface Space
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||