Class TableFieldValue
- java.lang.Object
-
- org.silverpeas.components.jdbcconnector.service.TableFieldValue
-
- All Implemented Interfaces:
Comparable<TableFieldValue>
public class TableFieldValue extends Object implements Comparable<TableFieldValue>
The value of a field in a table row. Such instance is used instead of a given true field value when that field value doesn't satisfy theComparable
interface.- Author:
- mmoquillon
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(TableFieldValue o)
Compares thisTableFieldValue
with the specified one.boolean
equals(Object o)
int
hashCode()
String
toString()
static TableFieldValue
valueOf(String value)
Constructs aTableFieldValue
instance from the specifiedString
encoded field value.
-
-
-
Method Detail
-
valueOf
public static TableFieldValue valueOf(String value)
Constructs aTableFieldValue
instance from the specifiedString
encoded field value.- Parameters:
value
- the value from which aTableFieldValue
has to be built.- Returns:
- a
TableFieldValue
instance wrapping the specifiedString
value.
-
compareTo
public int compareTo(TableFieldValue o)
Compares thisTableFieldValue
with the specified one. The comparing is actually done on the wrapped values themselves. If the wrapped values satisfy theComparable
interface then theComparable.compareTo(Object)
method is used, otherwise both of them are converted inString
objects and theseString
instances are then compared between themselves.- Specified by:
compareTo
in interfaceComparable<TableFieldValue>
- Parameters:
o
- anotherTableFieldValue
with which this one is compared.- Returns:
- the comparing distance between the two
TableFieldValue
instances.
-
-