Package io.openliberty.mcp.content
Record Class Content.Annotations
java.lang.Object
java.lang.Record
io.openliberty.mcp.content.Content.Annotations
- Record Components:
audience- (may benull)lastModified- (may benull)priority- (may benull)
- Enclosing interface:
- Content
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotations(Role audience, String lastModified, Double priority) Creates an instance of aAnnotationsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaudience()Returns the value of theaudiencerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelastModifiedrecord component.priority()Returns the value of thepriorityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Annotations
Creates an instance of aAnnotationsrecord class.- Parameters:
audience- the value for theaudiencerecord componentlastModified- the value for thelastModifiedrecord componentpriority- the value for thepriorityrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
audience
Returns the value of theaudiencerecord component.- Returns:
- the value of the
audiencerecord component
-
lastModified
Returns the value of thelastModifiedrecord component.- Returns:
- the value of the
lastModifiedrecord component
-
priority
Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-