Package io.openems.backend.metadata.odoo
Record Class Field.GenericField
java.lang.Object
java.lang.Record
io.openems.backend.metadata.odoo.Field.GenericField
- All Implemented Interfaces:
Field
- Enclosing interface:
Field
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.openems.backend.metadata.odoo.Field
Field.AlertingSetting, Field.Country, Field.EdgeConfigUpdate, Field.EdgeDevice, Field.EdgeDeviceUserRole, Field.GenericField, Field.Partner, Field.SetupProtocol, Field.SetupProtocolItem, Field.SetupProtocolProductionLot, Field.StockProductionLot, Field.User
-
Constructor Summary
ConstructorDescriptionGenericField
(Field... fields) GenericField
(String id) Creates an instance of aGenericField
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.int
index()
Gets the Field index.boolean
isQuery()
Should this Field be queried?.name()
Gets the Field name.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
GenericField
-
GenericField
Creates an instance of aGenericField
record class.- Parameters:
id
- the value for theid
record component
-
-
Method Details
-
index
public int index()Description copied from interface:Field
Gets the Field index. -
name
Description copied from interface:Field
Gets the Field name. -
isQuery
public boolean isQuery()Description copied from interface:Field
Should this Field be queried?. -
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)
. -
id
Returns the value of theid
record component.
-