com.karneim.util.collection.set
Class CharSet
java.lang.Object
com.karneim.util.collection.set.CharSet
- All Implemented Interfaces:
- java.lang.Cloneable, ISet_char, java.io.Serializable
- public class CharSet
- extends java.lang.Object
- implements ISet_char
- See Also:
- Serialized Form
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)
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
set
protected com.karneim.util.collection.set.CharSet.IAbstract set
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)
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)
hashCode
public int hashCode()
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
toString
public java.lang.String toString()