org.planx.util
Class IndexSet<K,V>

java.lang.Object
  extended by org.planx.util.IndexSet<K,V>
All Implemented Interfaces:
Iterable<V>

public class IndexSet<K,V>
extends Object
implements Iterable<V>


Constructor Summary
IndexSet()
           
 
Method Summary
 void add(K key, V edge)
           
 void clear()
           
 boolean contains(K key)
           
 Set<V> get(K key)
           
 boolean isEmpty()
           
 Iterator<V> iterator()
           
 void remove(K key, V edge)
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IndexSet

public IndexSet()
Method Detail

iterator

public Iterator<V> iterator()
Specified by:
iterator in interface Iterable<V>

size

public int size()

get

public Set<V> get(K key)

isEmpty

public boolean isEmpty()

contains

public boolean contains(K key)

add

public void add(K key,
                V edge)

remove

public void remove(K key,
                   V edge)

clear

public void clear()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010. All Rights Reserved.