Record Class ResourceList.RuleEntry
java.lang.Object
java.lang.Record
org.moddingx.libx.util.data.ResourceList.RuleEntry
- Enclosing class:
ResourceList
public static record ResourceList.RuleEntry(String value, boolean regex, @Nullable Boolean allow)
extends Record
An entry that represents a rule in this
ResourceList.
This is only meant to give access to the values in a resource list, it can't
be used to build new rules.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallow()Returns the value of theallowrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanregex()Returns the value of theregexrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
RuleEntry
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
regex
public boolean regex()Returns the value of theregexrecord component.- Returns:
- the value of the
regexrecord component
-
allow
-