Record Class ValidationCtx
java.lang.Object
java.lang.Record
com.csse3200.game.cutscene.validators.ValidationCtx
- Record Components:
characterIds
- A list ofString
character IDsbackgroundIds
- A list ofString
background IDssoundIds
- A list ofString
sound IDsbeatIds
- A list ofString
beat IDscharacterPoses
- A map of character id's to aSet<String>
of their pose IDs
public record ValidationCtx(Set<String> characterIds, Set<String> backgroundIds, Set<String> soundIds, Set<String> beatIds, Map<String,Set<String>> characterPoses)
extends Record
Stores important cutscene data to be passed into
ActionValidator
s-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackgroundIds
record component.beatIds()
Returns the value of thebeatIds
record component.Returns the value of thecharacterIds
record component.Returns the value of thecharacterPoses
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.soundIds()
Returns the value of thesoundIds
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ValidationCtx
public ValidationCtx(Set<String> characterIds, Set<String> backgroundIds, Set<String> soundIds, Set<String> beatIds, Map<String, Set<String>> characterPoses) Creates an instance of aValidationCtx
record class.- Parameters:
characterIds
- the value for thecharacterIds
record componentbackgroundIds
- the value for thebackgroundIds
record componentsoundIds
- the value for thesoundIds
record componentbeatIds
- the value for thebeatIds
record componentcharacterPoses
- the value for thecharacterPoses
record component
-
-
Method Details
-
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)
. -
characterIds
Returns the value of thecharacterIds
record component.- Returns:
- the value of the
characterIds
record component
-
backgroundIds
Returns the value of thebackgroundIds
record component.- Returns:
- the value of the
backgroundIds
record component
-
soundIds
Returns the value of thesoundIds
record component.- Returns:
- the value of the
soundIds
record component
-
beatIds
Returns the value of thebeatIds
record component.- Returns:
- the value of the
beatIds
record component
-
characterPoses
Returns the value of thecharacterPoses
record component.- Returns:
- the value of the
characterPoses
record component
-