java.lang.Object
java.lang.Record
org.yamcs.buckets.BucketProperties
-
Constructor Summary
ConstructorsConstructorDescriptionBucketProperties(String name, long created, int maxNumObjects, long maxSize, int numObjects, long size) Creates an instance of aBucketPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongcreated()Returns the value of thecreatedrecord component.final booleanIndicates whether some other object is "equal to" this one.static BucketPropertiesfromBucketInfo(org.yamcs.protobuf.BucketInfo info) static BucketPropertiesfinal inthashCode()Returns a hash code value for this object.intReturns the value of themaxNumObjectsrecord component.longmaxSize()Returns the value of themaxSizerecord component.name()Returns the value of thenamerecord component.intReturns the value of thenumObjectsrecord component.longsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BucketProperties
public BucketProperties(String name, long created, int maxNumObjects, long maxSize, int numObjects, long size) Creates an instance of aBucketPropertiesrecord class.- Parameters:
name- the value for thenamerecord componentcreated- the value for thecreatedrecord componentmaxNumObjects- the value for themaxNumObjectsrecord componentmaxSize- the value for themaxSizerecord componentnumObjects- the value for thenumObjectsrecord componentsize- the value for thesizerecord component
-
-
Method Details
-
fromBucketInfo
-
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
-
created
public long created()Returns the value of thecreatedrecord component.- Returns:
- the value of the
createdrecord component
-
maxNumObjects
public int maxNumObjects()Returns the value of themaxNumObjectsrecord component.- Returns:
- the value of the
maxNumObjectsrecord component
-
maxSize
public long maxSize()Returns the value of themaxSizerecord component.- Returns:
- the value of the
maxSizerecord component
-
numObjects
public int numObjects()Returns the value of thenumObjectsrecord component.- Returns:
- the value of the
numObjectsrecord component
-
size
public long size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-