Top Fields Constructors Methods
liquibase.diff

public Class Difference

extends AbstractLiquibaseSerializable
implements Comparable, LiquibaseSerializable
Class Inheritance
All Implemented Interfaces
liquibase.serializer.LiquibaseSerializable, java.lang.Comparable
Imports
liquibase.serializer.AbstractLiquibaseSerializable, .LiquibaseSerializable

Field Summary

Modifier and TypeField and Description
private final Object
private final String
private final String
private final Object

Constructor Summary

AccessConstructor and Description
public
Difference(String field, Object referenceValue, Object comparedValue)

public
Difference(String message, String field, Object referenceValue, Object comparedValue)

Method Summary

Modifier and TypeMethod and Description
public int
compareTo(Object
the object to be compared.
o
)

Implements java.lang.Comparable.compareTo.

Compares this object with the specified object for order.

public Object
public String
public String
public Object
public String
public String
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from liquibase.serializer.AbstractLiquibaseSerializable:
convertEscapedgetSerializableFieldDataTypeClassgetSerializableFieldDataTypeClassParametersgetSerializableFieldNamespacegetSerializableFieldsgetSerializableFieldTypegetSerializableFieldValueloadserializeserializeValuesetSerializableFieldValueshouldAutoLoad

Field Detail

comparedValueback to summary
private final Object comparedValue
fieldback to summary
private final String field
messageback to summary
private final String message
referenceValueback to summary
private final Object referenceValue

Constructor Detail

Differenceback to summary
public Difference(String field, Object referenceValue, Object comparedValue)
Differenceback to summary
public Difference(String message, String field, Object referenceValue, Object comparedValue)

Method Detail

compareToback to summary
public int compareTo(Object o)

Implements java.lang.Comparable.compareTo.

Doc from java.lang.Comparable.compareTo.

Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

The implementor must ensure signum(x.compareTo(y)) == -signum(y.compareTo(x)) for all x and y. (This implies that x.compareTo(y) must throw an exception if and only if y.compareTo(x) throws an exception.)

The implementor must also ensure that the relation is transitive: (x.compareTo(y) > 0 && y.compareTo(z) > 0) implies x.compareTo(z) > 0.

Finally, the implementor must ensure that x.compareTo(y)==0 implies that signum(x.compareTo(z)) == signum(y.compareTo(z)), for all z.

Parameters
o:Object

the object to be compared.

Returns:int

a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Annotations
@Override
getComparedValueback to summary
public Object getComparedValue()
getFieldback to summary
public String getField()
getMessageback to summary
public String getMessage()
getReferenceValueback to summary
public Object getReferenceValue()
getSerializedObjectNameback to summary
public String getSerializedObjectName()

Implements liquibase.serializer.LiquibaseSerializable.getSerializedObjectName.

Annotations
@Override
getSerializedObjectNamespaceback to summary
public String getSerializedObjectNamespace()

Implements liquibase.serializer.LiquibaseSerializable.getSerializedObjectNamespace.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override