Package org.apache.nifi.web
Class Revision
java.lang.Object
org.apache.nifi.web.Revision
- All Implemented Interfaces:
Serializable
A model object representing a revision. Equality is defined as matching
component ID and either a matching version number or matching non-empty client IDs.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringthe client IDprivate final Stringthe ID of the component that this revision belongs to, ornullif the revision is not attached to any component but rather is attached to the entire data flow.private static final longprivate final Longthe version number -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()incrementRevision(String clientId) Returns a new Revision that has the same Client ID and Component ID as this one but with a larger versiontoString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
version
the version number -
clientId
the client ID -
componentId
the ID of the component that this revision belongs to, ornullif the revision is not attached to any component but rather is attached to the entire data flow.
-
-
Constructor Details
-
Revision
-
-
Method Details
-
getClientId
-
getVersion
-
getComponentId
-
incrementRevision
Returns a new Revision that has the same Client ID and Component ID as this one but with a larger version- Returns:
- the updated Revision
-
equals
-
hashCode
public int hashCode() -
toString
-