Package com.github.t1.bulmajava.basic
Record Class Classes
java.lang.Object
java.lang.Record
com.github.t1.bulmajava.basic.Classes
- All Implemented Interfaces:
Attribute,Renderable
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.t1.bulmajava.basic.Attribute
Attribute.NoValueAttribute, Attribute.StringAttributeNested classes/interfaces inherited from interface com.github.t1.bulmajava.basic.Renderable
Renderable.ConcatenatedRenderable, Renderable.Indented, Renderable.RenderableString, Renderable.UnsafeString -
Field Summary
Fields inherited from interface com.github.t1.bulmajava.basic.Attribute
COMPARATOR, KEY_COMPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanempty()final booleanIndicates whether some other object is "equal to" this one.booleanfinal inthashCode()Returns a hash code value for this object.key()booleanvoidstatic Classesstatic ClassesvoidrenderValue(Renderer renderer) set()Returns the value of thesetrecord component.toString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.t1.bulmajava.basic.Renderable
find, find, render, rendersOnSeparateLines
-
Constructor Details
-
Classes
Creates an instance of aClassesrecord class.- Parameters:
set- the value for thesetrecord component
-
-
Method Details
-
of
-
of
-
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. -
key
-
empty
public boolean empty() -
hasClass
- Specified by:
hasClassin interfaceRenderable
-
matches
-
and
-
plus
-
plus
-
minus
-
renderValue
- Specified by:
renderValuein interfaceAttribute
-
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). -
set
Returns the value of thesetrecord component.- Returns:
- the value of the
setrecord component
-