Class TableFieldValue
java.lang.Object
org.silverpeas.components.jdbcconnector.service.TableFieldValue
- All Implemented Interfaces:
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 the
Comparable interface.- Author:
- mmoquillon
-
Method Summary
Modifier and TypeMethodDescriptionintCompares thisTableFieldValuewith the specified one.booleaninthashCode()toString()static TableFieldValueConstructs aTableFieldValueinstance from the specifiedStringencoded field value.
-
Method Details
-
valueOf
Constructs aTableFieldValueinstance from the specifiedStringencoded field value.- Parameters:
value- the value from which aTableFieldValuehas to be built.- Returns:
- a
TableFieldValueinstance wrapping the specifiedStringvalue.
-
equals
-
hashCode
public int hashCode() -
compareTo
Compares thisTableFieldValuewith the specified one. The comparing is actually done on the wrapped values themselves. If the wrapped values satisfy theComparableinterface then theComparable.compareTo(Object)method is used, otherwise both of them are converted inStringobjects and theseStringinstances are then compared between themselves.- Specified by:
compareToin interfaceComparable<TableFieldValue>- Parameters:
o- anotherTableFieldValuewith which this one is compared.- Returns:
- the comparing distance between the two
TableFieldValueinstances.
-
toString
-