|
Java Access to WordNet | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--danbikel.wordnet.Utility
A set of static utility functions. Some of these functions were originally created to provide backward compatibility with the JDK1.1 API.
| Method Summary | |
static HashSet |
addAll(HashSet hs,
Vector v)
Adds every element in the hash set hs to the vector
v. |
static Vector |
addAll(Vector v,
Object[] arr)
Adds every object in arr to the vector v. |
static Vector |
addAll(Vector a,
Vector b)
Adds every element of vector b to vector a (functionally identical to Vector.addAll(Vector) in JDK1.2 jdk 1.1 backward compat fix |
static Object |
getCanonical(Object obj,
Map canonical)
Returns a canonical version of the specified object using the specified reflexive map for canonicalization. |
static String |
join(String[] toks,
String delim)
Returns the string composed of all the tokens in toks
with the delimiter delim. |
static String |
join(String[] toks,
String delim,
int startIdx,
int endIdx)
Returns the string composed of the tokens in toks[startIdx..endIdx] with the delimiter delim. |
static String[] |
split(String s,
String delim)
Tokenizes the string s treating delimiters as tokens. |
static String[] |
split(String s,
String delim,
boolean delimsAreTokens)
Returns an array of tokens contained in the string s. |
static Object[] |
toArray(Vector v,
Object[] a)
functionally identical to Vector.toArray() in jdk 1.2 jdk 1.1 backward compat fix |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Vector addAll(Vector a,
Vector b)
public static Vector addAll(Vector v,
Object[] arr)
arr to the vector v.
public static HashSet addAll(HashSet hs,
Vector v)
hs to the vector
v.
public static Object[] toArray(Vector v,
Object[] a)
public static final String[] split(String s,
String delim,
boolean delimsAreTokens)
s.
s - the string to tokenize.delim - the characters to treat as token delimiters.delimsAreTokens - specifies whether to treat delimiters as tokens.
s.
public static final String[] split(String s,
String delim)
s treating delimiters as tokens.
s - the string to tokenize.delim - the characters to treat as token delimiters.
s.
public static final String join(String[] toks,
String delim,
int startIdx,
int endIdx)
toks[startIdx..endIdx] with the delimiter delim.
Note that toks[endIdx] is included.
toks - the array of tokens to joindelim - the string to insert between each token from toksstartIdx - the first element of toks to include in the
joinendIdx - the last element of toks to include in the
join
public static final String join(String[] toks,
String delim)
toks
with the delimiter delim.
public static Object getCanonical(Object obj,
Map canonical)
canonical - the reflexive map to be used for canonicalization
|
Java Access to WordNet | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||