com.karneim.util.collection.set

Class CharSet

public class CharSet extends Object implements ISet_char

Field Summary
protected CharSet.IAbstractset
Constructor Summary
protected CharSet(CharSet.IAbstract set)
CharSet()
CharSet(char ch)
CharSet(String s)
Method Summary
booleanadd(char ch)
voidaddAll(String chars)
voidaddAll(String chars, int offset)
voidaddAll(String chars, int offset, int length)
voidaddAll(char[] chars)
voidaddAll(char[] chars, int offset)
voidaddAll(char[] chars, int offset, int length)
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()
Objectclone()
protected CharSet.IAbstractcloneAbstract(CharSet.IAbstract set)
voidcomplement()
booleancontains(char ch)
booleanequals(Object obj)
inthashCode()
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()
StringtoString()

Field Detail

set

protected CharSet.IAbstract set

Constructor Detail

CharSet

protected CharSet(CharSet.IAbstract set)

CharSet

public CharSet()

CharSet

public CharSet(char ch)

CharSet

public CharSet(String s)

Method Detail

add

public boolean add(char ch)

addAll

public void addAll(String chars)

addAll

public void addAll(String chars, int offset)

addAll

public void addAll(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.

clear

public void clear()

clone

public Object clone()

cloneAbstract

protected CharSet.IAbstract cloneAbstract(CharSet.IAbstract set)

complement

public void complement()

contains

public boolean contains(char ch)

equals

public boolean equals(Object obj)

hashCode

public int hashCode()

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()

toString

public String toString()