Package org.bgerp.plugin.bgb.getolt.dao
Record Class OltOnuDAO.OnuMacEntry
java.lang.Object
java.lang.Record
org.bgerp.plugin.bgb.getolt.dao.OltOnuDAO.OnuMacEntry
- Enclosing class:
OltOnuDAO
public static record OltOnuDAO.OnuMacEntry(int id, String mac, String macTo, boolean hasBillingData)
extends Record
ONU entry with MAC addresses and billing data presence flag.
Used for billing mapping to match by both mac and macTo.
-
Constructor Summary
ConstructorsConstructorDescriptionOnuMacEntry(int id, String mac, String macTo, boolean hasBillingData) Creates an instance of aOnuMacEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thehasBillingDatarecord component.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.mac()Returns the value of themacrecord component.macTo()Returns the value of themacTorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OnuMacEntry
Creates an instance of aOnuMacEntryrecord class.- Parameters:
id- the value for theidrecord componentmac- the value for themacrecord componentmacTo- the value for themacTorecord componenthasBillingData- the value for thehasBillingDatarecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
mac
Returns the value of themacrecord component.- Returns:
- the value of the
macrecord component
-
macTo
Returns the value of themacTorecord component.- Returns:
- the value of the
macTorecord component
-
hasBillingData
public boolean hasBillingData()Returns the value of thehasBillingDatarecord component.- Returns:
- the value of the
hasBillingDatarecord component
-