public abstract class CmpTarget<T> extends Object
Txn.| Modifier and Type | Class and Description |
|---|---|
static class |
CmpTarget.CreateRevisionCmpTarget |
static class |
CmpTarget.ModRevisionCmpTarget |
static class |
CmpTarget.ValueCmpTarget |
static class |
CmpTarget.VersionCmpTarget |
| Modifier | Constructor and Description |
|---|---|
protected |
CmpTarget(Compare.CompareTarget target,
T targetValue) |
| Modifier and Type | Method and Description |
|---|---|
static CmpTarget.CreateRevisionCmpTarget |
createRevision(long revision)
Cmp on the create revision.
|
Compare.CompareTarget |
getTarget()
Get the compare target used for this compare.
|
T |
getTargetValue()
Get the compare target value of this compare.
|
static CmpTarget.ModRevisionCmpTarget |
modRevision(long revision)
Cmp on the modification revision.
|
static CmpTarget.ValueCmpTarget |
value(ByteSequence value)
Cmp on the value.
|
static CmpTarget.VersionCmpTarget |
version(long version)
Cmp on a given version.
|
protected CmpTarget(Compare.CompareTarget target, T targetValue)
public static CmpTarget.VersionCmpTarget version(long version)
version - version to comparepublic static CmpTarget.CreateRevisionCmpTarget createRevision(long revision)
revision - the create revisionpublic static CmpTarget.ModRevisionCmpTarget modRevision(long revision)
revision - the modification revisionpublic static CmpTarget.ValueCmpTarget value(ByteSequence value)
value - the value to comparepublic Compare.CompareTarget getTarget()
public T getTargetValue()
Copyright © 2021. All rights reserved.