Package io.keikai.axyra.sheets.content
Record Class ProtectedRange
java.lang.Object
java.lang.Record
io.keikai.axyra.sheets.content.ProtectedRange
- Record Components:
name- the range name (unique within the sheet)sqref- the space-separated A1 range listhasPassword- whether a password is stored (kept only as a hash)
An allow-users-to-edit-range: a named cell range that stays editable
while the sheet is protected, optionally gated by its own password
(ECMA-376 Part 1 §18.3.1.72
protectedRange). Read back via
Sheet.protectedRanges().-
Constructor Summary
ConstructorsConstructorDescriptionProtectedRange(String name, String sqref, boolean hasPassword) Creates an instance of aProtectedRangerecord 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.booleanReturns the value of thehasPasswordrecord component.name()Returns the value of thenamerecord component.sqref()Returns the value of thesqrefrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProtectedRange
Creates an instance of aProtectedRangerecord class.- Parameters:
name- the value for thenamerecord componentsqref- the value for thesqrefrecord componenthasPassword- the value for thehasPasswordrecord component
-
-
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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
sqref
Returns the value of thesqrefrecord component.- Returns:
- the value of the
sqrefrecord component
-
hasPassword
public boolean hasPassword()Returns the value of thehasPasswordrecord component.- Returns:
- the value of the
hasPasswordrecord component
-