Record Class TurSNFieldDefinition
java.lang.Object
java.lang.Record
com.viglet.turing.sn.template.TurSNFieldDefinition
public record TurSNFieldDefinition(String name, String description, TurSEFieldType type, int multiValued, String facetName, Set<TurSNSiteFieldExtFacet> locales, int hl)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTurSNFieldDefinition(String name, String description, TurSEFieldType type, int multiValued, String facetName, Set<TurSNSiteFieldExtFacet> locales, int hl) Creates an instance of aTurSNFieldDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefacetNamerecord component.final inthashCode()Returns a hash code value for this object.inthl()Returns the value of thehlrecord component.locales()Returns the value of thelocalesrecord component.intReturns the value of themultiValuedrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
TurSNFieldDefinition
public TurSNFieldDefinition(String name, String description, TurSEFieldType type, int multiValued, String facetName, Set<TurSNSiteFieldExtFacet> locales, int hl) Creates an instance of aTurSNFieldDefinitionrecord class.- Parameters:
name- the value for thenamerecord componentdescription- the value for thedescriptionrecord componenttype- the value for thetyperecord componentmultiValued- the value for themultiValuedrecord componentfacetName- the value for thefacetNamerecord componentlocales- the value for thelocalesrecord componenthl- the value for thehlrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
multiValued
public int multiValued()Returns the value of themultiValuedrecord component.- Returns:
- the value of the
multiValuedrecord component
-
facetName
Returns the value of thefacetNamerecord component.- Returns:
- the value of the
facetNamerecord component
-
locales
Returns the value of thelocalesrecord component.- Returns:
- the value of the
localesrecord component
-
hl
public int hl()Returns the value of thehlrecord component.- Returns:
- the value of the
hlrecord component
-