Package com.easydesk.web.support
Record Class AttributeOptionTreeSupport.Row
java.lang.Object
java.lang.Record
com.easydesk.web.support.AttributeOptionTreeSupport.Row
- Enclosing class:
AttributeOptionTreeSupport
public static record AttributeOptionTreeSupport.Row(Integer optionId, String name, int depth, String prefix, boolean leaf)
extends Record
화면에 찍을 한 줄. depth 는 0(맨 상위)부터, prefix 는 이름 앞에 붙일 tree 선 문자열.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdepth()Returns the value of thedepthrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.<select> 의 <option> 처럼 공백이 접히는 곳에서 쓸 수 있게 공백을 nbsp 로 바꾼 label.booleanleaf()Returns the value of theleafrecord component.name()Returns the value of thenamerecord component.optionId()Returns the value of theoptionIdrecord component.prefix()Returns the value of theprefixrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Row
Creates an instance of aRowrecord class.- Parameters:
optionId- the value for theoptionIdrecord componentname- the value for thenamerecord componentdepth- the value for thedepthrecord componentprefix- the value for theprefixrecord componentleaf- the value for theleafrecord component
-
-
Method Details
-
indentedName
<select> 의 <option> 처럼 공백이 접히는 곳에서 쓸 수 있게 공백을 nbsp 로 바꾼 label. -
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 '=='. -
optionId
Returns the value of theoptionIdrecord component.- Returns:
- the value of the
optionIdrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
depth
public int depth()Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-
prefix
Returns the value of theprefixrecord component.- Returns:
- the value of the
prefixrecord component
-
leaf
public boolean leaf()Returns the value of theleafrecord component.- Returns:
- the value of the
leafrecord component
-