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 theComparableinterface.- Author:
- mmoquillon
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(TableFieldValue o)Compares thisTableFieldValuewith the specified one.booleanequals(Object o)inthashCode()StringtoString()static TableFieldValuevalueOf(String value)Constructs aTableFieldValueinstance from the specifiedStringencoded field value.
-
-
-
Method Detail
-
valueOf
public static TableFieldValue valueOf(String value)
Constructs aTableFieldValueinstance from the specifiedStringencoded field value.- Parameters:
value- the value from which aTableFieldValuehas to be built.- Returns:
- a
TableFieldValueinstance wrapping the specifiedStringvalue.
-
compareTo
public int compareTo(TableFieldValue o)
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.
-
-