com.karneim.util.collection.set
Class CharSet

java.lang.Object
  extended by com.karneim.util.collection.set.CharSet
All Implemented Interfaces:
ISet_char, java.io.Serializable, java.lang.Cloneable

public class CharSet
extends java.lang.Object
implements ISet_char

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.karneim.util.collection.set.ISet_char
ISet_char.Iterator
 
Field Summary
protected  com.karneim.util.collection.set.CharSet.IAbstract set
           
 
Constructor Summary
  CharSet()
           
  CharSet(char ch)
           
protected CharSet(com.karneim.util.collection.set.CharSet.IAbstract set)
           
  CharSet(java.lang.String s)
           
 
Method Summary
 boolean add(char ch)
           
 void addAll(char[] chars)
           
 void addAll(char[] chars, int offset)
           
 void addAll(char[] chars, int offset, int length)
           
 void addAll(ISet_char set)
          adds all chars from set to this ISet_char without adding doublicates.
 void addAll(java.lang.String chars)
           
 void addAll(java.lang.String chars, int offset)
           
 void addAll(java.lang.String chars, int offset, int length)
           
 void clear()
          return this.removeAll(set).
 java.lang.Object clone()
           
protected  com.karneim.util.collection.set.CharSet.IAbstract cloneAbstract(com.karneim.util.collection.set.CharSet.IAbstract set)
           
 void complement()
           
 boolean contains(char ch)
           
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 boolean isEmpty()
           
 ISet_char.Iterator iterator()
           
 boolean remove(char ch)
           
 void removeAll(ISet_char set)
          Removes from this set all of its elements that are contained in the specified set (optional operation).
 void retainAll(ISet_char set)
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

set

protected com.karneim.util.collection.set.CharSet.IAbstract set
Constructor Detail

CharSet

protected CharSet(com.karneim.util.collection.set.CharSet.IAbstract set)

CharSet

public CharSet()

CharSet

public CharSet(char ch)

CharSet

public CharSet(java.lang.String s)
Method Detail

complement

public void complement()
Specified by:
complement in interface ISet_char

contains

public boolean contains(char ch)
Specified by:
contains in interface ISet_char

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface ISet_char

size

public int size()
Specified by:
size in interface ISet_char

iterator

public ISet_char.Iterator iterator()
Specified by:
iterator in interface ISet_char

clear

public void clear()
Description copied from interface: ISet_char
return this.removeAll(set). return C = A \ B = this \ set

Specified by:
clear in interface ISet_char

add

public boolean add(char ch)
Specified by:
add in interface ISet_char

remove

public boolean remove(char ch)
Specified by:
remove in interface ISet_char

addAll

public void addAll(java.lang.String chars)
Specified by:
addAll in interface ISet_char

addAll

public void addAll(java.lang.String chars,
                   int offset)

addAll

public void addAll(java.lang.String chars,
                   int offset,
                   int length)

addAll

public void addAll(char[] chars)

addAll

public void addAll(char[] chars,
                   int offset)

addAll

public void addAll(char[] chars,
                   int offset,
                   int length)

addAll

public void addAll(ISet_char set)
adds all chars from set to this ISet_char without adding doublicates. returns the number of chars added to this ISet_char.

Specified by:
addAll in interface ISet_char

removeAll

public void removeAll(ISet_char set)
Removes from this set all of its elements that are contained in the specified set (optional operation). returns the number of chars that were removed.

Specified by:
removeAll in interface ISet_char

retainAll

public void retainAll(ISet_char set)
Specified by:
retainAll in interface ISet_char

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

cloneAbstract

protected com.karneim.util.collection.set.CharSet.IAbstract cloneAbstract(com.karneim.util.collection.set.CharSet.IAbstract set)

clone

public java.lang.Object clone()
Specified by:
clone in interface ISet_char
Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object