Code example for Set

Methods: iterator

0
     * returns an iterator of the group elements 
     * 
     * @return iterator containing the elements of the group. 
     */ 
    public Iterator iterator() {
        return group.iterator();
    } 
 
    /** 
     * Tests the variable argument value is in this group. 
     * 
     * @see Constraint#test(java.lang.Object) 
     */ 
    public boolean test(Object value) {
        return group.contains(value);
    } 
 
    public String toString() {
        return "inGroup [" + group + "]";
    } 
}