|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.RegexString
public final class RegexString
Type-safe string type.
regular expression: foo|bar|buzInstances of this class are immutable.
| Field Summary | |
|---|---|
static String |
REGULAR_EXPRESSION
The regular expression matching RegexString. |
static Pattern |
REGULAR_EXPRESSION_PATTERN
The compiled pattern for the regular expression. |
static String |
TYPE_NAME
The name of this type. |
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one. |
static RegexString |
fromString(String str)
Creates a RegexString object from SXP String representation. |
int |
hashCode()
Returns the hash code for the RegexString. |
String |
toString()
Returns the SXP String representation of this RegexString. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String TYPE_NAME
public static final String REGULAR_EXPRESSION
public static final Pattern REGULAR_EXPRESSION_PATTERN
| Method Detail |
|---|
public static RegexString fromString(String str)
throws ArgumentMalformedException
str - The str representation of the RegexString to be returned.
ArgumentMalformedException - If the given string s
does not conform to the Simpay Interface representation of
RegexString.public String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectobj - the object to compare to.
public int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||