Record Class NewsLookupSymbolDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.symbol.NewsLookupSymbolDTO
- Record Components:
label- parent symbol labelcode- symbol alias codedatasource- datasource code
-
Constructor Summary
ConstructorsConstructorDescriptionNewsLookupSymbolDTO(String label, String code, String datasource) Creates an instance of aNewsLookupSymbolDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.Returns the value of thedatasourcerecord component.final booleanIndicates whether some other object is "equal to" this one.static NewsLookupSymbolDTOfrom(SymbolAlias symbolAlias) Builds aNewsLookupSymbolDTOfrom aSymbolAlias.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NewsLookupSymbolDTO
-
-
Method Details
-
from
Builds aNewsLookupSymbolDTOfrom aSymbolAlias.- Parameters:
symbolAlias-SymbolAlias- Returns:
NewsLookupSymbolDTO
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
label
-
code
-
datasource
Returns the value of thedatasourcerecord component.- Returns:
- the value of the
datasourcerecord component
-