Package tools.refinery.logic.term.string
Record Class StringValue.Concrete
java.lang.Object
java.lang.Record
tools.refinery.logic.term.string.StringValue.Concrete
- All Implemented Interfaces:
Comparable<StringValue>,AbstractValue<StringValue,,String> Add<StringValue>,StringValue
- Enclosing interface:
StringValue
public static record StringValue.Concrete(@NotNull String value)
extends Record
implements StringValue
-
Nested Class Summary
Nested classes/interfaces inherited from interface tools.refinery.logic.term.string.StringValue
StringValue.Concrete, StringValue.Error, StringValue.Unknown -
Field Summary
Fields inherited from interface tools.refinery.logic.term.string.StringValue
ERROR, UNKNOWN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(StringValue other) checkEquals(StringValue other) intcompareTo(@NotNull StringValue other) final booleanIndicates whether some other object is "equal to" this one.@NotNull String@NotNull Stringfinal inthashCode()Returns a hash code value for this object.booleanbooleanisError()booleanisOverlapping(StringValue other) booleanisRefinementOf(StringValue other) join(StringValue other) meet(StringValue other) @NotNull StringtoString()Returns a string representation of this record class.@NotNull Stringvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
Concrete
Creates an instance of aConcreterecord class.- Parameters:
value- the value for thevaluerecord component
-
-
Method Details
-
getConcrete
- Specified by:
getConcretein interfaceAbstractValue<StringValue,String>
-
isConcrete
public boolean isConcrete()- Specified by:
isConcretein interfaceAbstractValue<StringValue,String>
-
getArbitrary
- Specified by:
getArbitraryin interfaceAbstractValue<StringValue,String>
-
isError
public boolean isError()- Specified by:
isErrorin interfaceAbstractValue<StringValue,String>
-
join
- Specified by:
joinin interfaceAbstractValue<StringValue,String>
-
meet
- Specified by:
meetin interfaceAbstractValue<StringValue,String>
-
isRefinementOf
- Specified by:
isRefinementOfin interfaceAbstractValue<StringValue,String>
-
isOverlapping
- Specified by:
isOverlappingin interfaceAbstractValue<StringValue,String>
-
add
- Specified by:
addin interfaceAdd<StringValue>
-
checkEquals
- Specified by:
checkEqualsin interfaceAbstractValue<StringValue,String>
-
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. -
compareTo
- Specified by:
compareToin interfaceComparable<StringValue>
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-