Record Class StatusResource.RuntimeBean
java.lang.Object
java.lang.Record
ch.tocco.nice2.rest.core.impl.resources.StatusResource.RuntimeBean
- Enclosing class:
StatusResource
public static record StatusResource.RuntimeBean(String host, StatusResource.MemoryBean memory)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRuntimeBean(String host, StatusResource.MemoryBean memory) Creates an instance of aRuntimeBeanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.host()Returns the value of thehostrecord component.memory()Returns the value of thememoryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RuntimeBean
Creates an instance of aRuntimeBeanrecord class.- Parameters:
host- the value for thehostrecord componentmemory- the value for thememoryrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
host
Returns the value of thehostrecord component.- Returns:
- the value of the
hostrecord component
-
memory
Returns the value of thememoryrecord component.- Returns:
- the value of the
memoryrecord component
-