Plexus v0.13.1

com.phoenixst.plexus.util
Class SingletonEdgeCollection

java.lang.Object
  extended by com.phoenixst.collections.AbstractSingletonCollection
      extended by com.phoenixst.plexus.util.SingletonEdgeCollection
All Implemented Interfaces:
Iterable, Collection

public class SingletonEdgeCollection
extends AbstractSingletonCollection

A singleton edge Collection view. Since this collection is modifiable, it may be empty at any given point in time.

Since:
1.0
Version:
$Revision: 1.4 $
Author:
Ray A. Conner

Constructor Summary
SingletonEdgeCollection(Graph graph, Graph.Edge edge)
          Creates a new SingletonEdgeCollection.
 
Method Summary
 boolean isEmpty()
           
 boolean removeElement()
           
 
Methods inherited from class com.phoenixst.collections.AbstractSingletonCollection
add, addAll, clear, contains, containsAll, getElement, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Constructor Detail

SingletonEdgeCollection

public SingletonEdgeCollection(Graph graph,
                               Graph.Edge edge)
Creates a new SingletonEdgeCollection.

Method Detail

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection
Specified by:
isEmpty in class AbstractSingletonCollection

removeElement

public boolean removeElement()
Specified by:
removeElement in class AbstractSingletonCollection

Plexus v0.13.1

See the Plexus project home, hosted by SourceForge.
Copyright ? 1994-2006, by Phoenix Software Technologists, Inc. and others. All Rights Reserved. Use is subject to license terms.