|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<java.lang.String,java.lang.String>
TSNameSet
class TSNameSet
.
====================================================================== Class TSNameSet -- controls set of names This class implements a 'Set' of names. Lower case characters are used to ensure uniqueness. The names themselves are NOT changed. This class differs from a normal 'Set', that notation of the names is NOT considered. This class also may be used as a 'FilenameFilter'. So, the results of a file-search may be filtered by the names included in this set. ##TSNameSet (Eyecatcher) ======================================================================
Field Summary | |
---|---|
private boolean |
Dir
|
protected static java.lang.String |
IdStr
|
private java.lang.String |
suffix
|
Constructor Summary | |
---|---|
protected |
TSNameSet()
. |
protected |
TSNameSet(boolean d,
java.lang.String s)
. |
Method Summary | |
---|---|
boolean |
accept(java.io.File prt,
java.lang.String name)
. |
protected boolean |
add(java.lang.String nS)
. |
protected boolean |
contains(java.lang.String nS)
. |
protected java.util.Iterator<java.lang.String> |
keyIterator(boolean nos)
. |
protected void |
setFilter(boolean d,
java.lang.String s)
. |
protected java.util.Iterator<java.lang.String> |
XXXiterator()
. |
Methods inherited from class java.util.HashMap |
---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Field Detail |
---|
protected static final java.lang.String IdStr
private boolean Dir
private java.lang.String suffix
Constructor Detail |
---|
protected TSNameSet()
===================================================================== Constructor: (1) create Default-Entry =====================================================================
protected TSNameSet(boolean d, java.lang.String s)
===================================================================== Constructor: (2) create Standard-Entry =====================================================================
Method Detail |
---|
public final boolean accept(java.io.File prt, java.lang.String name)
===================================================================== Method "accept" Check filename and select it as valid or not Attention: Method is requested by interface 'FilenameFilter' ##accept.TSNameSet (Eyecatcher) =====================================================================
accept
in interface java.io.FilenameFilter
protected final boolean add(java.lang.String nS)
===================================================================== Method "add" Add an Name-Entry to the namelist ##add.TSNameSet (Eyecatcher) =====================================================================
protected final boolean contains(java.lang.String nS)
===================================================================== Method "contains" Checks if a value is present in the namelist using its key ##contains.TSNameSet (Eyecatcher) =====================================================================
protected final java.util.Iterator<java.lang.String> XXXiterator()
===================================================================== Method "iterator" Returns an iterator for all values of the namelist. Because 'values()' returns a 'view', 'remove()' is still valid. --- Method is NOT referenced until now. (marked by 'XXX...') --- ##iterator.TSNameSet (Eyecatcher) =====================================================================
protected final java.util.Iterator<java.lang.String> keyIterator(boolean nos)
===================================================================== Method "keyIterator" Returns an iterator for all keys of the namelist. Because 'keySet()' returns a 'view', 'remove()' is still valid. Attention: If 'sort' is requested (nos==false), the view-attribute is no longer valid. ##keyIterator.TSNameSet (Eyecatcher) =====================================================================
protected final void setFilter(boolean d, java.lang.String s)
===================================================================== Method "setFilter" Modifies or activates the FilenameFilter-function. This method establishes a new directory-flag and a suffix for the filename. If 's==null' the suffix-value is invalidated. ##setFilter.TSNameSet (Eyecatcher) =====================================================================
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |