Record Class Connections
java.lang.Object
java.lang.Record
com.refinedmods.refinedstorage.api.network.Connections
@API(status=STABLE,
since="2.0.0-milestone.1.0")
public record Connections(Set<NetworkNodeContainer> foundEntries, Set<NetworkNodeContainer> newEntries, Set<NetworkNodeContainer> removedEntries)
extends Record
-
Constructor Summary
ConstructorDescriptionConnections
(Set<NetworkNodeContainer> foundEntries, Set<NetworkNodeContainer> newEntries, Set<NetworkNodeContainer> removedEntries) Creates an instance of aConnections
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefoundEntries
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thenewEntries
record component.Returns the value of theremovedEntries
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Connections
public Connections(Set<NetworkNodeContainer> foundEntries, Set<NetworkNodeContainer> newEntries, Set<NetworkNodeContainer> removedEntries) Creates an instance of aConnections
record class.- Parameters:
foundEntries
- the value for thefoundEntries
record componentnewEntries
- the value for thenewEntries
record componentremovedEntries
- the value for theremovedEntries
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)
. -
foundEntries
Returns the value of thefoundEntries
record component.- Returns:
- the value of the
foundEntries
record component
-
newEntries
Returns the value of thenewEntries
record component.- Returns:
- the value of the
newEntries
record component
-
removedEntries
Returns the value of theremovedEntries
record component.- Returns:
- the value of the
removedEntries
record component
-