jxl.combination
Class Combination<E extends java.io.Serializable>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by jxl.combination.Combination<E>
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<E>, java.util.Collection<E>
Direct Known Subclasses:
CombinationSet, VagueCombination

public class Combination<E extends java.io.Serializable>
extends java.util.AbstractCollection<E>
implements java.io.Serializable

Combination exposes BindingContext as a Collection. Elements added to a Combination are persisted, and may be retrieved later by a Combination created with the same peramaters. Combination behaves like a simple bag.

Author:
Alex Lynch
See Also:
Serialized Form

Constructor Summary
Combination(javax.naming.Name context, java.security.Permission check)
          Creates a new Combination
 
Method Summary
 boolean add(E e)
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 java.util.Iterator<E> iterator()
           
 int size()
           
 
Methods inherited from class java.util.AbstractCollection
addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Combination

public Combination(javax.naming.Name context,
                   java.security.Permission check)
Creates a new Combination

Parameters:
context - A name used to seperate this Combination from others. with the same context
Method Detail

add

public boolean add(E e)
Specified by:
add in interface java.util.Collection<E extends java.io.Serializable>
Overrides:
add in class java.util.AbstractCollection<E extends java.io.Serializable>

iterator

public java.util.Iterator<E> iterator()
Specified by:
iterator in interface java.lang.Iterable<E extends java.io.Serializable>
Specified by:
iterator in interface java.util.Collection<E extends java.io.Serializable>
Specified by:
iterator in class java.util.AbstractCollection<E extends java.io.Serializable>

size

public int size()
Specified by:
size in interface java.util.Collection<E extends java.io.Serializable>
Specified by:
size in class java.util.AbstractCollection<E extends java.io.Serializable>

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Collection<E extends java.io.Serializable>
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Collection<E extends java.io.Serializable>
Overrides:
equals in class java.lang.Object