Package org.onosproject.store.flow.impl
Class FlowBucketDigest
- java.lang.Object
-
- org.onosproject.store.flow.impl.FlowBucketDigest
-
public class FlowBucketDigest extends java.lang.ObjectFlow bucket digest.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intbucket()Returns the bucket identifier.booleanequals(java.lang.Object object)inthashCode()booleanisNewerThan(FlowBucketDigest digest)Returns a boolean indicating whether this digest is newer than the given digest.longterm()Returns the bucket term.org.onosproject.store.LogicalTimestamptimestamp()Returns the bucket timestamp.
-
-
-
Method Detail
-
bucket
public int bucket()
Returns the bucket identifier.- Returns:
- the bucket identifier
-
term
public long term()
Returns the bucket term.- Returns:
- the bucket term
-
timestamp
public org.onosproject.store.LogicalTimestamp timestamp()
Returns the bucket timestamp.- Returns:
- the bucket timestamp
-
isNewerThan
public boolean isNewerThan(FlowBucketDigest digest)
Returns a boolean indicating whether this digest is newer than the given digest.- Parameters:
digest- the digest to check- Returns:
- indicates whether this digest is newer than the given digest
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object
-
-