Record Class PDLConfig.Value<T>
java.lang.Object
java.lang.Record
com.portingdeadmods.portingdeadlibs.api.config.PDLConfig.Value<T>
- Enclosing class:
PDLConfig
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.comment()Returns the value of thecommentrecord component.Returns the value of thedefaultValuerecord component.final booleanIndicates whether some other object is "equal to" this one.field()Returns the value of thefieldrecord component.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.doublemax()Returns the value of themaxrecord component.doublemin()Returns the value of theminrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.@Nullable PDLConfig.Value.Typetype()Returns the value of thetyperecord component.
-
Constructor Details
-
Value
public Value(Field field, @Nullable @Nullable PDLConfig.Value.Type type, T defaultValue, String key, String category, String name, String comment, double min, double max) Creates an instance of aValuerecord class.- Parameters:
field- the value for thefieldrecord componenttype- the value for thetyperecord componentdefaultValue- the value for thedefaultValuerecord componentkey- the value for thekeyrecord componentcategory- the value for thecategoryrecord componentname- the value for thenamerecord componentcomment- the value for thecommentrecord componentmin- the value for theminrecord componentmax- the value for themaxrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
field
Returns the value of thefieldrecord component.- Returns:
- the value of the
fieldrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
defaultValue
Returns the value of thedefaultValuerecord component.- Returns:
- the value of the
defaultValuerecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
comment
Returns the value of thecommentrecord component.- Returns:
- the value of the
commentrecord component
-
min
public double min()Returns the value of theminrecord component.- Returns:
- the value of the
minrecord component
-
max
public double max()Returns the value of themaxrecord component.- Returns:
- the value of the
maxrecord component
-