Record Class DataFlowVariable
java.lang.Object
java.lang.Record
org.palladiosimulator.dataflow.confidentiality.analysis.sequence.entity.DataFlowVariable
public record DataFlowVariable(String variableName, List<CharacteristicValue> characteristics)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDataFlowVariable(String variableName) DataFlowVariable(String variableName, List<CharacteristicValue> characteristics) Creates an instance of aDataFlowVariablerecord class. -
Method Summary
Modifier and TypeMethodDescriptionaddCharacteristic(CharacteristicValue characteristic) Returns the value of thecharacteristicsrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanhasCharacteristic(CharacteristicValue characteristic) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of thevariableNamerecord component.
-
Constructor Details
-
DataFlowVariable
-
DataFlowVariable
Creates an instance of aDataFlowVariablerecord class.- Parameters:
variableName- the value for thevariableNamerecord componentcharacteristics- the value for thecharacteristicsrecord 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 thevariableNamerecord component.- Returns:
- the value of the
variableNamerecord component
-
characteristics
Returns the value of thecharacteristicsrecord component.- Returns:
- the value of the
characteristicsrecord component
-