com.karneim.util.collection.set

Interface ISet_char

public interface ISet_char extends Serializable, Cloneable

Nested Class Summary
static interfaceISet_char.Iterator
Method Summary
booleanadd(char ch)
voidaddAll(String chars)
voidaddAll(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.
voidclear()
return this.removeAll(set). return C = A \ B = this \ set
Objectclone()
voidcomplement()
booleancontains(char ch)
booleanisEmpty()
ISet_char.Iteratoriterator()
booleanremove(char ch)
voidremoveAll(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.
voidretainAll(ISet_char set)
intsize()

Method Detail

add

public boolean add(char ch)

addAll

public void addAll(String chars)

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.

clear

public void clear()
return this.removeAll(set). return C = A \ B = this \ set

clone

public Object clone()

complement

public void complement()

contains

public boolean contains(char ch)

isEmpty

public boolean isEmpty()

iterator

public ISet_char.Iterator iterator()

remove

public boolean remove(char ch)

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.

retainAll

public void retainAll(ISet_char set)

size

public int size()