Record Class NetworkDevice
java.lang.Object
java.lang.Record
org.jenkinsci.plugins.proxmox.api.model.NetworkDevice
-
Constructor Summary
ConstructorsConstructorDescriptionNetworkDevice(String iface, String type, int active) Creates an instance of aNetworkDevicerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintactive()Returns the value of theactiverecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.iface()Returns the value of theifacerecord component.booleanisBridge()final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
NetworkDevice
Creates an instance of aNetworkDevicerecord class.- Parameters:
iface- the value for theifacerecord componenttype- the value for thetyperecord componentactive- the value for theactiverecord component
-
-
Method Details
-
isBridge
public boolean isBridge() -
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 '=='. -
iface
Returns the value of theifacerecord component.- Returns:
- the value of the
ifacerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
active
public int active()Returns the value of theactiverecord component.- Returns:
- the value of the
activerecord component
-