Package net.shibboleth.spring.testing
Record Class AbstractFailFastTest.MockProperty
java.lang.Object
java.lang.Record
net.shibboleth.spring.testing.AbstractFailFastTest.MockProperty
- Record Components:
name- property namevalue- property value
- Enclosing class:
- AbstractFailFastTest
public static record AbstractFailFastTest.MockProperty(@Nonnull String name, @Nonnull String value)
extends Record
A record wrapper for a mock property.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
Constructor Details
-
MockProperty
Constructor.- Parameters:
name- property namevalue- property value
-
-
Method Details
-
name
Get name.- Returns:
- name
-
value
Get value.- Returns:
- value
-
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).
-