Package br.unip.aps.sorting
Record Class Criterios.Nivel
java.lang.Object
java.lang.Record
br.unip.aps.sorting.Criterios.Nivel
- Enclosing class:
Criterios
Um nivel da ordenacao: criterio + direcao.
-
Constructor Summary
ConstructorsConstructorDescriptionNivel(CriterioOrdenacao criterio, Ordem ordem) Creates an instance of aNivelrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncriterio()Returns the value of thecriteriorecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.ordem()Returns the value of theordemrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Nivel
Creates an instance of aNivelrecord class.- Parameters:
criterio- the value for thecriteriorecord componentordem- the value for theordemrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
criterio
Returns the value of thecriteriorecord component.- Returns:
- the value of the
criteriorecord component
-
ordem
Returns the value of theordemrecord component.- Returns:
- the value of the
ordemrecord component
-