Record Class ProtectMode
java.lang.Object
java.lang.Record
io.trino.plugin.hive.metastore.ProtectMode
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProtectMode(boolean offline, boolean readOnly) Creates an instance of aProtectModerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanoffline()Returns the value of theofflinerecord component.booleanreadOnly()Returns the value of thereadOnlyrecord component.final StringtoString()Returns a string representation of this record class.static ProtectMode
-
Field Details
-
PARAMETER_NAME
- See Also:
-
-
Constructor Details
-
ProtectMode
public ProtectMode(boolean offline, boolean readOnly) Creates an instance of aProtectModerecord class.- Parameters:
offline- the value for theofflinerecord componentreadOnly- the value for thereadOnlyrecord component
-
-
Method Details
-
valueOf
-
toString
-
hashCode
-
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 with thecomparemethod from their corresponding wrapper classes. -
offline
public boolean offline()Returns the value of theofflinerecord component.- Returns:
- the value of the
offlinerecord component
-
readOnly
public boolean readOnly()Returns the value of thereadOnlyrecord component.- Returns:
- the value of the
readOnlyrecord component
-