Class InventoryRecord
java.lang.Object
com.amilesend.discogs.csv.type.InventoryRecord
Defines a record for an inventory item as a CSV row.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleanFlag indicator if buyer offers are accepted or not (optional).Free-form comments.Gets the list of headers based on the populated fields.Free-form notes for external identifiers (optional).The item format quantity (optional).Free-form text field to describe the location (optional).The media condition (required).getPrice()The price (required).@NonNull IntegerThe release identifier (required).The sleeve condition (optional).The item weight in grams (optional).inthashCode()toCsvRow(@NonNull List<InventoryHeader> docCsvHeaders, @NonNull InventoryRecordType type) Converts the record to a list of String values that represents the row.toString()voidvalidate(@NonNull InventoryRecordType type) Validates the record contents based on the defined record type.
-
Field Details
-
YES
-
NO
-
-
Method Details
-
getDefinedHeaders
Gets the list of headers based on the populated fields.- Returns:
- the list of defined headers
-
validate
Validates the record contents based on the defined record type.- Parameters:
type- the record type- Throws:
ValidationException- if there is an error with the record- See Also:
-
toCsvRow
public List<String> toCsvRow(@NonNull List<InventoryHeader> docCsvHeaders, @NonNull InventoryRecordType type) Converts the record to a list of String values that represents the row.- Parameters:
docCsvHeaders- the list of headers to include in the rowtype- the record type- Returns:
- the record represented as a list of strings
- See Also:
-
toString
-
builder
-
getReleaseId
The release identifier (required). -
getPrice
The price (required). -
getMediaCondition
-
getSleeveCondition
-
getComments
Free-form comments. -
getAcceptOffer
Flag indicator if buyer offers are accepted or not (optional).- See Also:
-
getLocation
Free-form text field to describe the location (optional). -
getExternalId
Free-form notes for external identifiers (optional). -
getWeight
The item weight in grams (optional). -
getFormatQuantity
The item format quantity (optional). -
equals
-
hashCode
-