|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.aksw.commons.collections.CacheSet<K>
K - public class CacheSet<K>
T is the Timestamp object (e.g. Date, Long, etc). Multiple keys may have the same timestamp. At each time there may only be a single key.
| Constructor Summary | |
|---|---|
CacheSet()
inclusive: wheter max distance is inclusive or exclusive. |
|
CacheSet(int maxItemCount,
boolean allowRenewal)
|
|
| Method Summary | ||
|---|---|---|
boolean |
_add(K key)
Put operations are done for the current time |
|
boolean |
add(K key)
|
|
boolean |
addAll(Collection<? extends K> arg0)
|
|
K |
addAndGetRemoved(K key)
Adds an item, and returns an item that was removed - or null if no item was removed |
|
void |
clear()
|
|
boolean |
contains(Object arg0)
|
|
boolean |
containsAll(Collection<?> arg0)
|
|
boolean |
equals(Object o)
|
|
Integer |
getKeyTime(K key)
|
|
int |
hashCode()
|
|
boolean |
isEmpty()
|
|
Iterator<K> |
iterator()
FIXME Make sure that the iterator's remove method cannot be invoked directly |
|
boolean |
remove(Object arg0)
|
|
boolean |
removeAll(Collection<?> items)
|
|
boolean |
renew(Object key)
|
|
boolean |
retainAll(Collection<?> arg0)
|
|
Set<K> |
setMaxItemCount(int newMaxItemCount)
Sets a new maximum distance. |
|
int |
size()
|
|
Object[] |
toArray()
|
|
|
toArray(X[] arg0)
|
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CacheSet()
public CacheSet(int maxItemCount,
boolean allowRenewal)
| Method Detail |
|---|
public Integer getKeyTime(K key)
public Set<K> setMaxItemCount(int newMaxItemCount)
newMaxItemCount - public boolean renew(Object key)
public K addAndGetRemoved(K key)
key -
public boolean add(K key)
add in interface Collection<K>add in interface Set<K>public boolean _add(K key)
public boolean addAll(Collection<? extends K> arg0)
addAll in interface Collection<K>addAll in interface Set<K>public void clear()
clear in interface Collection<K>clear in interface Set<K>public boolean contains(Object arg0)
contains in interface Collection<K>contains in interface Set<K>public boolean containsAll(Collection<?> arg0)
containsAll in interface Collection<K>containsAll in interface Set<K>public boolean isEmpty()
isEmpty in interface Collection<K>isEmpty in interface Set<K>public Iterator<K> iterator()
iterator in interface Iterable<K>iterator in interface Collection<K>iterator in interface Set<K>public boolean remove(Object arg0)
remove in interface Collection<K>remove in interface Set<K>public boolean removeAll(Collection<?> items)
removeAll in interface Collection<K>removeAll in interface Set<K>public boolean retainAll(Collection<?> arg0)
retainAll in interface Collection<K>retainAll in interface Set<K>public int size()
size in interface Collection<K>size in interface Set<K>public Object[] toArray()
toArray in interface Collection<K>toArray in interface Set<K>public <X> X[] toArray(X[] arg0)
toArray in interface Collection<K>toArray in interface Set<K>public int hashCode()
hashCode in interface Collection<K>hashCode in interface Set<K>hashCode in class Objectpublic boolean equals(Object o)
equals in interface Collection<K>equals in interface Set<K>equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||