Package org.eclipse.jgit.notes
Class Note
java.lang.Object
org.eclipse.jgit.lib.AnyObjectId
org.eclipse.jgit.lib.ObjectId
org.eclipse.jgit.notes.Note
- All Implemented Interfaces:
Serializable
,Comparable<AnyObjectId>
In-memory representation of a single note attached to one object.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNote
(AnyObjectId noteOn, ObjectId noteData) A Git note about the object referenced bynoteOn
. -
Method Summary
Methods inherited from class org.eclipse.jgit.lib.ObjectId
equals, fromRaw, fromRaw, fromRaw, fromRaw, fromString, fromString, isId, toObjectId, toString, zeroId
-
Field Details
-
data
-
-
Constructor Details
-
Note
A Git note about the object referenced bynoteOn
.- Parameters:
noteOn
- the object that has a note attached to it.noteData
- the actual note data contained in this note
-
-
Method Details
-
getData
Get the note content.- Returns:
- the note content.
-
setData
-
toString
- Overrides:
toString
in classAnyObjectId
-