Record Class SpecSingleton
java.lang.Object
java.lang.Record
dev.goldmensch.propane.spec.processor.syntax.SpecSingleton
- All Implemented Interfaces:
SpecProperty
public record SpecSingleton(String name, Property.Source source, String scope, TypeElement type, boolean internal)
extends Record
implements SpecProperty
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSpecSingleton(String name, Property.Source source, String scope, TypeElement type, boolean internal) Creates an instance of aSpecSingletonrecord 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.booleaninternal()Returns the value of theinternalrecord component.name()Returns the value of thenamerecord component.scope()Returns the value of thescoperecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
ANNOTATION
- See Also:
-
-
Constructor Details
-
SpecSingleton
public SpecSingleton(String name, Property.Source source, String scope, TypeElement type, boolean internal) Creates an instance of aSpecSingletonrecord class.- Parameters:
name- the value for thenamerecord componentsource- the value for thesourcerecord componentscope- the value for thescoperecord componenttype- the value for thetyperecord componentinternal- the value for theinternalrecord 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.- Specified by:
namein interfaceSpecProperty- Returns:
- the value of the
namerecord component
-
source
Returns the value of thesourcerecord component.- Specified by:
sourcein interfaceSpecProperty- Returns:
- the value of the
sourcerecord component
-
scope
Returns the value of thescoperecord component.- Specified by:
scopein interfaceSpecProperty- Returns:
- the value of the
scoperecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
internal
public boolean internal()Returns the value of theinternalrecord component.- Specified by:
internalin interfaceSpecProperty- Returns:
- the value of the
internalrecord component
-