FileDocCategorySizeDatePackage
TokenValueSet.javaAPI DocGlassfish v2 API4011Fri May 04 22:25:58 BST 2007com.sun.enterprise.admin.util

TokenValueSet

public class TokenValueSet extends Object implements Cloneable
Represents the Set of TokenValue objects.
author
kedar

Fields Summary
private final Set
values
Constructors Summary
public TokenValueSet()

        values = new HashSet<TokenValue>();
    
public TokenValueSet(Set values)

        //if (!isTokenValueSet(values)) {
          //  throw new IllegalArgumentException("Invalid set");
        //}
        this.values = new HashSet<TokenValue>();
        this.values.addAll(values);
    
Methods Summary
public voidadd(com.sun.enterprise.admin.util.TokenValue tokenValue)

        boolean added = this.values.add(tokenValue);
    
public voidaddAll(java.util.Set more)

        this.values.addAll(more);
    
public voidclear()

        this.values.clear();
    
public java.lang.Objectclone()

        return ( super.clone() );
    
public booleanisEmpty()

        return ( this.values.isEmpty() );
    
public java.util.Iteratoriterator()

        return ( this.values.iterator() );
    
public voidremove(com.sun.enterprise.admin.util.TokenValue tokenValue)

        this.values.remove(tokenValue);
    
public intsize()

        return ( this.values.size() );
    
public java.lang.Object[]toArray()

        return ( this.values.toArray() );
    
public java.lang.StringtoString()

        StringBuffer buf = new StringBuffer();
        Iterator<TokenValue> iter = this.iterator();
        while(iter.hasNext()) {
            TokenValue tv = iter.next();
            buf.append(tv.toString());
            buf.append(System.getProperty("line.separator"));
        }
        return ( buf.toString() );