Record Class Message.Format.Padding.Value
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Message.Format.Padding.Value
- Enclosing class:
Message.Format.Padding
public static record Message.Format.Padding.Value(Message.Format.Padding.Type type, Integer length)
extends Record
- Since:
- 1.7.1
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionValue(Message.Format.Padding.Type type, Integer length) Creates an instance of aValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.length()Returns the value of thelengthrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.withLength(Integer length)
-
Constructor Details
-
Value
Creates an instance of aValuerecord class.- Parameters:
type- the value for thetyperecord componentlength- the value for thelengthrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withType
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withLength
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
length
Returns the value of thelengthrecord component.- Returns:
- the value of the
lengthrecord component
-