java.lang.Object
java.lang.Record
org.yamcs.buckets.ObjectProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentTyperecord component.longcreated()Returns the value of thecreatedrecord component.final booleanIndicates whether some other object is "equal to" this one.static ObjectPropertiesfromObjectInfo(org.yamcs.protobuf.ObjectInfo info) static ObjectPropertiesfinal inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.name()Returns the value of thenamerecord component.longsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ObjectProperties
public ObjectProperties(String name, String contentType, long created, long size, Map<String, String> metadata) Creates an instance of aObjectPropertiesrecord class.- Parameters:
name- the value for thenamerecord componentcontentType- the value for thecontentTyperecord componentcreated- the value for thecreatedrecord componentsize- the value for thesizerecord componentmetadata- the value for themetadatarecord component
-
-
Method Details
-
fromObjectInfo
-
fromYarch
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-
created
public long created()Returns the value of thecreatedrecord component.- Returns:
- the value of the
createdrecord component
-
size
public long size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-