Package xyz.srnyx.annoyingapi.storage
Record Class FailedSet
java.lang.Object
java.lang.Record
xyz.srnyx.annoyingapi.storage.FailedSet
- Record Components:
table- The table that the set operation failed ontarget- The target that the set operation failed forcolumn- The column that the set operation failed onvalue- The value that the set operation failed withexception- The exception that occurred while attempting to set the value
public record FailedSet(@NotNull String table, @NotNull String target, @NotNull String column, @Nullable String value, @Nullable Throwable exception)
extends Record
Represents a failed set operation
-
Constructor Summary
ConstructorsConstructorDescriptionFailedSet(@NotNull String table, @NotNull String target, @NotNull String column, @Nullable String value) Constructs a new failed set with the given table, target, column, and valueFailedSet(@NotNull String table, @NotNull String target, @NotNull String column, @Nullable String value, @Nullable Throwable exception) Creates an instance of aFailedSetrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Stringcolumn()Returns the value of thecolumnrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable ThrowableReturns the value of theexceptionrecord component.final inthashCode()Returns a hash code value for this object.@NotNull Stringtable()Returns the value of thetablerecord component.@NotNull Stringtarget()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.@Nullable Stringvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
FailedSet
public FailedSet(@NotNull @NotNull String table, @NotNull @NotNull String target, @NotNull @NotNull String column, @Nullable @Nullable String value) Constructs a new failed set with the given table, target, column, and value- Parameters:
table-tabletarget-targetcolumn-columnvalue-value
-
FailedSet
public FailedSet(@NotNull @NotNull String table, @NotNull @NotNull String target, @NotNull @NotNull String column, @Nullable @Nullable String value, @Nullable @Nullable Throwable exception) Creates an instance of aFailedSetrecord class.
-
-
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). -
table
Returns the value of thetablerecord component.- Returns:
- the value of the
tablerecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
column
Returns the value of thecolumnrecord component.- Returns:
- the value of the
columnrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
exception
Returns the value of theexceptionrecord component.- Returns:
- the value of the
exceptionrecord component
-