Record Class ElementServiceRecord
java.lang.Object
java.lang.Record
dev.getelements.elements.sdk.record.ElementServiceRecord
- Record Components:
implementation
- the implementation recordexport
- the exported types
public record ElementServiceRecord(ElementServiceImplementationRecord implementation, ElementServiceExportRecord export)
extends Record
Record type for
ElementService
annotation-
Constructor Summary
ConstructorsConstructorDescriptionElementServiceRecord
(ElementServiceImplementationRecord implementation, ElementServiceExportRecord export) Creates an instance of aElementServiceRecord
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.export()
Returns the value of theexport
record component.Gets aStream
of all exposed types.static Stream
<ElementServiceRecord> static Stream
<ElementServiceRecord> fromPackage
(Package aPackage) Gets theElementServiceRecord
s from the suppliedPackage
final int
hashCode()
Returns a hash code value for this object.Returns the value of theimplementation
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ElementServiceRecord
public ElementServiceRecord(ElementServiceImplementationRecord implementation, ElementServiceExportRecord export) Creates an instance of aElementServiceRecord
record class.- Parameters:
implementation
- the value for theimplementation
record componentexport
- the value for theexport
record component
-
-
Method Details
-
fromClass
- Parameters:
aClass
- the type bearing the annotation- Returns:
- a
Stream
ofElementServiceRecord
instances, one for each of the defined annotations
-
exposedTypes
Gets aStream
of all exposed types.- Returns:
- a
Stream
of all exposed types.
-
fromPackage
Gets theElementServiceRecord
s from the suppliedPackage
- Parameters:
aPackage
-Package
with theElementService
annotation- Returns:
- a
Stream
ofElementServiceRecord
instances, one for each of the defined annotations
-
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)
. -
implementation
Returns the value of theimplementation
record component.- Returns:
- the value of the
implementation
record component
-
export
Returns the value of theexport
record component.- Returns:
- the value of the
export
record component
-