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 aElementServiceRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.export()Returns the value of theexportrecord component.Gets aStreamof all exposed types.static Stream<ElementServiceRecord> static Stream<ElementServiceRecord> fromPackage(Package aPackage) Gets theElementServiceRecords from the suppliedPackagefinal inthashCode()Returns a hash code value for this object.Returns the value of theimplementationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ElementServiceRecord
public ElementServiceRecord(ElementServiceImplementationRecord implementation, ElementServiceExportRecord export) Creates an instance of aElementServiceRecordrecord class.- Parameters:
implementation- the value for theimplementationrecord componentexport- the value for theexportrecord component
-
-
Method Details
-
fromClass
- Parameters:
aClass- the type bearing the annotation- Returns:
- a
StreamofElementServiceRecordinstances, one for each of the defined annotations
-
exposedTypes
Gets aStreamof all exposed types.- Returns:
- a
Streamof all exposed types.
-
fromPackage
Gets theElementServiceRecords from the suppliedPackage- Parameters:
aPackage-Packagewith theElementServiceannotation- Returns:
- a
StreamofElementServiceRecordinstances, 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 theimplementationrecord component.- Returns:
- the value of the
implementationrecord component
-
export
Returns the value of theexportrecord component.- Returns:
- the value of the
exportrecord component
-