Record Class DataFlowVariable
java.lang.Object
java.lang.Record
org.palladiosimulator.dataflow.confidentiality.analysis.characteristics.DataFlowVariable
public record DataFlowVariable(String variableName, List<CharacteristicValue> characteristics)
extends Record
-
Constructor Summary
ConstructorDescriptionDataFlowVariable
(String variableName) DataFlowVariable
(String variableName, List<CharacteristicValue> characteristics) Creates an instance of aDataFlowVariable
record class. -
Method Summary
Modifier and TypeMethodDescriptionaddCharacteristic
(CharacteristicValue characteristic) Returns the value of thecharacteristics
record component.final boolean
Indicates whether some other object is "equal to" this one.boolean
hasCharacteristic
(CharacteristicValue characteristic) final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.Returns the value of thevariableName
record component.
-
Constructor Details
-
DataFlowVariable
-
DataFlowVariable
Creates an instance of aDataFlowVariable
record class.- Parameters:
variableName
- the value for thevariableName
record componentcharacteristics
- the value for thecharacteristics
record component
-
-
Method Details
-
addCharacteristic
-
hasCharacteristic
-
getAllCharacteristics
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
variableName
Returns the value of thevariableName
record component.- Returns:
- the value of the
variableName
record component
-
characteristics
Returns the value of thecharacteristics
record component.- Returns:
- the value of the
characteristics
record component
-