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) int
compareTo
(@NotNull StringValue other) final boolean
Indicates whether some other object is "equal to" this one.@NotNull String
@NotNull String
final int
hashCode()
Returns a hash code value for this object.boolean
boolean
isError()
boolean
isOverlapping
(StringValue other) boolean
isRefinementOf
(StringValue other) join
(StringValue other) meet
(StringValue other) @NotNull String
toString()
Returns a string representation of this record class.@NotNull String
value()
Returns the value of thevalue
record component.
-
Constructor Details
-
Concrete
Creates an instance of aConcrete
record class.- Parameters:
value
- the value for thevalue
record component
-
-
Method Details
-
getConcrete
- Specified by:
getConcrete
in interfaceAbstractValue<StringValue,
String>
-
isConcrete
public boolean isConcrete()- Specified by:
isConcrete
in interfaceAbstractValue<StringValue,
String>
-
getArbitrary
- Specified by:
getArbitrary
in interfaceAbstractValue<StringValue,
String>
-
isError
public boolean isError()- Specified by:
isError
in interfaceAbstractValue<StringValue,
String>
-
join
- Specified by:
join
in interfaceAbstractValue<StringValue,
String>
-
meet
- Specified by:
meet
in interfaceAbstractValue<StringValue,
String>
-
isRefinementOf
- Specified by:
isRefinementOf
in interfaceAbstractValue<StringValue,
String>
-
isOverlapping
- Specified by:
isOverlapping
in interfaceAbstractValue<StringValue,
String>
-
add
- Specified by:
add
in interfaceAdd<StringValue>
-
checkEquals
- Specified by:
checkEquals
in 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:
compareTo
in 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 thevalue
record component.- Returns:
- the value of the
value
record component
-