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 aTabrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassociatedResourceTypesrecord component.intReturns the value of thecustomHeaderrecord component.enabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.mount()Returns the value of themountrecord component.intposition()Returns the value of thepositionrecord component.@Nullable ItemSearchDelegateReturns the value of thesearchDelegaterecord component.final StringtoString()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 thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
mount
Returns the value of themountrecord component.- Returns:
- the value of the
mountrecord component
-
searchDelegate
Returns the value of thesearchDelegaterecord component.- Returns:
- the value of the
searchDelegaterecord component
-
associatedResourceTypes
Returns the value of theassociatedResourceTypesrecord component.- Returns:
- the value of the
associatedResourceTypesrecord component
-
customHeader
Returns the value of thecustomHeaderrecord component.- Returns:
- the value of the
customHeaderrecord component
-
position
public int position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
enabled
Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component