Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


com.tangosol.util
Interface Versionable


public interface Versionable

An interface for versionable data.

Author:
cp 2000.10.20

Method Summary
 java.lang.Comparable getVersionIndicator()
          Get the version indicator for this object.
 void incrementVersion()
          Update the version to the next logical version indicator.

 

Method Detail

getVersionIndicator

java.lang.Comparable getVersionIndicator()
Get the version indicator for this object. The version indicator should be an immutable object or one treated as an immutable, which is to say that after the version is incremented, the previous version's indicator reference will never be returned again.
Returns:
a non-null version value that implements the Comparable interface

incrementVersion

void incrementVersion()
Update the version to the next logical version indicator.
Throws:
java.lang.UnsupportedOperationException - if the object is immutable or if the object does not know how to increment its own version indicator

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.