Record Class Entry
java.lang.Object
java.lang.Record
com.nerjal.ip_range_parser.Entry
- Record Components:
name- The name or identifier associated with the entry.ranges- A sorted set ofPairobjects defining the range(s) for the entry.
Represents an entry containing a name and a sorted set of range pairs.
An Entry object serves as a container for a string identifier (name)
and a collection of ranges represented as Pair instances.
The ranges are stored in a sorted set, ensuring they remain ordered
according to their natural ordering as defined in the Pair record.
Each Pair comprises two BigInteger values, representing
the bounds of a range, and is comparable based on its
first value (Pair.i1()).
This record provides an immutable and thread-safe way of managing entries and their associated ranges.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.ranges()Returns the value of therangesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Entry
-
-
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). -
name
-
ranges
-