Record Class Tab
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.gateway.web.nav.Tab
- All Implemented Interfaces:
Comparable<Tab>
public record Tab(String label, Mount mount, @Nullable ItemSearchDelegate searchDelegate, Set<ResourceType> associatedResourceTypes, Boolean customHeader, int position, Predicate<GatewayContext> enabled)
extends Record
implements Comparable<Tab>
-
Constructor Summary
ConstructorsConstructorDescriptionTab
(String label, Mount mount, @Nullable ItemSearchDelegate searchDelegate, Set<ResourceType> associatedResourceTypes, Boolean customHeader, int position, Predicate<GatewayContext> enabled) Creates an instance of aTab
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassociatedResourceTypes
record component.int
Returns the value of thecustomHeader
record component.enabled()
Returns the value of theenabled
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.label()
Returns the value of thelabel
record component.mount()
Returns the value of themount
record component.int
position()
Returns the value of theposition
record component.@Nullable ItemSearchDelegate
Returns the value of thesearchDelegate
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
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 '=='. -
label
Returns the value of thelabel
record component.- Returns:
- the value of the
label
record component
-
mount
Returns the value of themount
record component.- Returns:
- the value of the
mount
record component
-
searchDelegate
Returns the value of thesearchDelegate
record component.- Returns:
- the value of the
searchDelegate
record component
-
associatedResourceTypes
Returns the value of theassociatedResourceTypes
record component.- Returns:
- the value of the
associatedResourceTypes
record component
-
customHeader
Returns the value of thecustomHeader
record component.- Returns:
- the value of the
customHeader
record component
-
position
public int position()Returns the value of theposition
record component.- Returns:
- the value of the
position
record component
-
enabled
Returns the value of theenabled
record component.- Returns:
- the value of the
enabled
record component