Record Class HistoryResponse
java.lang.Object
java.lang.Record
de.chojo.universalis.rest.response.HistoryResponse
- Record Components:
item- itemworld- worlddataCenter- data centerregion- regionlastUploadTime- last upload timesales- salessaleVelocity- sale velocitystackSizeHistogram- stack size histogram
public record HistoryResponse(Item item, @Nullable World world, @Nullable DataCenter dataCenter, @Nullable Region region, LocalDateTime lastUploadTime, List<MinimizedSale> sales, QualityIndicator<Float> saleVelocity, QualityIndicator<Map<Integer,Integer>> stackSizeHistogram)
extends Record
Response of a
HistoryRequest-
Constructor Summary
ConstructorsConstructorDescriptionHistoryResponse(Item item, @Nullable World world, @Nullable DataCenter dataCenter, @Nullable Region region, LocalDateTime lastUploadTime, List<MinimizedSale> sales, QualityIndicator<Float> saleVelocity, QualityIndicator<Map<Integer, Integer>> stackSizeHistogram) Creates an instance of aHistoryResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedataCenterrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.item()Returns the value of theitemrecord component.Returns the value of thelastUploadTimerecord component.region()Returns the value of theregionrecord component.sales()Returns the value of thesalesrecord component.Returns the value of thesaleVelocityrecord component.Returns the value of thestackSizeHistogramrecord component.final StringtoString()Returns a string representation of this record class.world()Returns the value of theworldrecord component.
-
Constructor Details
-
HistoryResponse
public HistoryResponse(Item item, @Nullable @Nullable World world, @Nullable @Nullable DataCenter dataCenter, @Nullable @Nullable Region region, LocalDateTime lastUploadTime, List<MinimizedSale> sales, QualityIndicator<Float> saleVelocity, QualityIndicator<Map<Integer, Integer>> stackSizeHistogram) Creates an instance of aHistoryResponserecord class.- Parameters:
item- the value for theitemrecord componentworld- the value for theworldrecord componentdataCenter- the value for thedataCenterrecord componentregion- the value for theregionrecord componentlastUploadTime- the value for thelastUploadTimerecord componentsales- the value for thesalesrecord componentsaleVelocity- the value for thesaleVelocityrecord componentstackSizeHistogram- the value for thestackSizeHistogramrecord component
-
-
Method Details
-
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). -
item
Returns the value of theitemrecord component.- Returns:
- the value of the
itemrecord component
-
world
Returns the value of theworldrecord component.- Returns:
- the value of the
worldrecord component
-
dataCenter
Returns the value of thedataCenterrecord component.- Returns:
- the value of the
dataCenterrecord component
-
region
Returns the value of theregionrecord component.- Returns:
- the value of the
regionrecord component
-
lastUploadTime
Returns the value of thelastUploadTimerecord component.- Returns:
- the value of the
lastUploadTimerecord component
-
sales
Returns the value of thesalesrecord component.- Returns:
- the value of the
salesrecord component
-
saleVelocity
Returns the value of thesaleVelocityrecord component.- Returns:
- the value of the
saleVelocityrecord component
-
stackSizeHistogram
Returns the value of thestackSizeHistogramrecord component.- Returns:
- the value of the
stackSizeHistogramrecord component
-