Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2010, Oracle. All rights reserved.