Record Class SymbolRegistryEntry
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.core.nonentities.symbol.SymbolRegistryEntry
- Record Components:
id- unique identifiercategory- registry category that contains the entryname- symbol or instrument nameticker- ticker or codedescription- researched descriptionexchange- exchange MICinstrumentType- instrument type codewebsite- issuer or instrument websiteactive- true when the entry is activesourceUrls- sources used to enrich the entryaliases- symbol aliasesconfidence- enrichment confidence valueneedsReview- true when the entry still requires review
public record SymbolRegistryEntry(String id, String category, String name, String ticker, String description, String exchange, String instrumentType, String website, boolean active, List<String> sourceUrls, List<SymbolRegistryAliasEntry> aliases, Double confidence, boolean needsReview)
extends Record
Represents a single entry from the symbol registry JSON document.
- Version:
- 2.0.2
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionSymbolRegistryEntry(String id, String category, String name, String ticker, String description, String exchange, String instrumentType, String website, boolean active, List<String> sourceUrls, List<SymbolRegistryAliasEntry> aliases, Double confidence, boolean needsReview) Creates a new immutable registry entry. -
Method Summary
Modifier and TypeMethodDescriptionbooleanactive()Returns the value of theactiverecord component.aliases()Returns the value of thealiasesrecord component.category()Returns the value of thecategoryrecord component.Returns the value of theconfidencerecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.exchange()Returns the value of theexchangerecord component.fromId(String resolvedId, SymbolRegistryEntry toMerge) Copies the given registry entry with the supplied id.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theinstrumentTyperecord component.name()Returns the value of thenamerecord component.booleanReturns the value of theneedsReviewrecord component.Returns the value of thesourceUrlsrecord component.ticker()Returns the value of thetickerrecord component.final StringtoString()Returns a string representation of this record class.website()Returns the value of thewebsiterecord component.withAliases(List<SymbolRegistryAliasEntry> resolvedAliases) Copies this registry entry with the supplied aliases.withCategory(String resolvedCategory) Copies this registry entry with the supplied category.Copies this registry entry with the supplied id.
-
Constructor Details
-
SymbolRegistryEntry
public SymbolRegistryEntry(String id, String category, String name, String ticker, String description, String exchange, String instrumentType, String website, boolean active, List<String> sourceUrls, List<SymbolRegistryAliasEntry> aliases, Double confidence, boolean needsReview) Creates a new immutable registry entry.
-
-
Method Details
-
fromId
Copies the given registry entry with the supplied id.- Parameters:
resolvedId- id to applytoMerge- source entry- Returns:
SymbolRegistryEntry
-
withId
Copies this registry entry with the supplied id.- Parameters:
resolvedId- id to apply- Returns:
SymbolRegistryEntry
-
withCategory
Copies this registry entry with the supplied category.- Parameters:
resolvedCategory- category to apply- Returns:
SymbolRegistryEntry
-
withAliases
Copies this registry entry with the supplied aliases.- Parameters:
resolvedAliases- aliases to apply- Returns:
SymbolRegistryEntry
-
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. -
id
-
category
-
name
-
ticker
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
exchange
-
instrumentType
Returns the value of theinstrumentTyperecord component.- Returns:
- the value of the
instrumentTyperecord component
-
website
-
active
-
sourceUrls
Returns the value of thesourceUrlsrecord component.- Returns:
- the value of the
sourceUrlsrecord component
-
aliases
-
confidence
Returns the value of theconfidencerecord component.- Returns:
- the value of the
confidencerecord component
-
needsReview
public boolean needsReview()Returns the value of theneedsReviewrecord component.- Returns:
- the value of the
needsReviewrecord component
-