org.granite.client.tide.data.impl
Class UIDWeakSet

java.lang.Object
  extended by org.granite.client.tide.data.impl.UIDWeakSet

public class UIDWeakSet
extends Object

Implementation of HashSet that holds weak references to UID entities

Author:
William DRAI

Nested Class Summary
static interface UIDWeakSet.Matcher
           
static interface UIDWeakSet.Operation
           
 
Constructor Summary
UIDWeakSet()
           
UIDWeakSet(int capacity)
           
 
Method Summary
 void apply(UIDWeakSet.Operation operation)
           
 void clear()
           
 List<Object> data()
           
 Object find(UIDWeakSet.Matcher matcher)
           
 Identifiable get(String uid)
           
 Identifiable put(Identifiable uidObject)
           
 Identifiable remove(String uid)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIDWeakSet

public UIDWeakSet()

UIDWeakSet

public UIDWeakSet(int capacity)
Method Detail

clear

public void clear()

put

public Identifiable put(Identifiable uidObject)

get

public Identifiable get(String uid)

find

public Object find(UIDWeakSet.Matcher matcher)

apply

public void apply(UIDWeakSet.Operation operation)

remove

public Identifiable remove(String uid)

size

public int size()

data

public List<Object> data()