Class StringField
java.lang.Object
com.singularsys.extensions.field.AbstractComparativeField
com.singularsys.extensions.field.implementations.StringField
- All Implemented Interfaces:
FieldI,Serializable
String concatenation, and comparison
- Author:
- Richard Morris
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd two members of the field.Not implemented for this field.Uses String.compareTo(String)Not implemented for this field.getOne()Not defined for this fieldgetZero()Not defined for this fieldNot implemented for this field.Not implemented for this field.The negation -x of an element.Not implemented for this field.Not implemented for this field.Not implemented for this field.Subtract two members of the field.
-
Constructor Details
-
StringField
public StringField()
-
-
Method Details
-
add
Description copied from interface:FieldIAdd two members of the field.- Parameters:
l- left-hand argumentr- right-hand argument- Returns:
- an object representing the result or null if it can not be evaluated.
-
sub
Description copied from interface:FieldISubtract two members of the field.- Parameters:
l- left-hand argumentr- right-hand argument- Returns:
- null always
-
neg
Description copied from interface:FieldIThe negation -x of an element.- Parameters:
l- the argument- Returns:
- null always
-
cmp
Uses String.compareTo(String)- Specified by:
cmpin classAbstractComparativeField- Parameters:
l-r-- Returns:
- -1, 0, 1 if l < r, l==r or l > r respectively, or null if comparison cannot be carried out or
-
mul
Not implemented for this field.- Parameters:
l- left-hand argumentr- right-hand argument- Returns:
- null
-
div
Not implemented for this field.- Parameters:
l- left-hand argumentr- right-hand argument- Returns:
- null
-
mod
Not implemented for this field.- Parameters:
l- left-hand argumentr- right-hand argument- Returns:
- null
-
pow
Not implemented for this field.- Parameters:
l- left-hand argumentr- right-hand argument- Returns:
- null
-
and
Not implemented for this field.- Parameters:
l- left-hand argumentr- right-hand argument- Returns:
- null
-
or
Not implemented for this field.- Parameters:
l- left-hand argumentr- right-hand argument- Returns:
- null
-
not
Not implemented for this field.- Parameters:
l- argument- Returns:
- null
-
getOne
Not defined for this field- Returns:
- null
-
getZero
Not defined for this field- Returns:
- null
-