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
ConstructorsConstructorDescriptionConnections(Set<NetworkNodeContainer> foundEntries, Set<NetworkNodeContainer> newEntries, Set<NetworkNodeContainer> removedEntries) Creates an instance of aConnectionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefoundEntriesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thenewEntriesrecord component.Returns the value of theremovedEntriesrecord component.final StringtoString()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 aConnectionsrecord class.- Parameters:
foundEntries- the value for thefoundEntriesrecord componentnewEntries- the value for thenewEntriesrecord componentremovedEntries- the value for theremovedEntriesrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thefoundEntriesrecord component.- Returns:
- the value of the
foundEntriesrecord component
-
newEntries
Returns the value of thenewEntriesrecord component.- Returns:
- the value of the
newEntriesrecord component
-
removedEntries
Returns the value of theremovedEntriesrecord component.- Returns:
- the value of the
removedEntriesrecord component
-