net.ontopia.topicmaps.impl.tmapi2
Class LazySet<T>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<T>
          extended by net.ontopia.topicmaps.impl.tmapi2.LazySet<T>
All Implemented Interfaces:
Iterable<T>, Collection<T>, Set<T>

public class LazySet<T>
extends AbstractSet<T>

INTERNAL: OKS->TMAPI object wrapper.


Field Summary
protected  Collection<?> other
           
protected  TopicMapImpl tm
           
 
Constructor Summary
LazySet(TopicMapImpl tm, Collection<?> other)
           
 
Method Summary
 Iterator<T> iterator()
           
 boolean remove(Object o)
           
 int size()
           
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, isEmpty, retainAll, toArray, toArray
 

Field Detail

tm

protected TopicMapImpl tm

other

protected Collection<?> other
Constructor Detail

LazySet

public LazySet(TopicMapImpl tm,
               Collection<?> other)
Method Detail

iterator

public Iterator<T> iterator()
Specified by:
iterator in interface Iterable<T>
Specified by:
iterator in interface Collection<T>
Specified by:
iterator in interface Set<T>
Specified by:
iterator in class AbstractCollection<T>

size

public int size()
Specified by:
size in interface Collection<T>
Specified by:
size in interface Set<T>
Specified by:
size in class AbstractCollection<T>

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection<T>
Specified by:
remove in interface Set<T>
Overrides:
remove in class AbstractCollection<T>


Copyright © 2000-2012 Ontopia.