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 aHistoryResponse
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedataCenter
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.item()
Returns the value of theitem
record component.Returns the value of thelastUploadTime
record component.region()
Returns the value of theregion
record component.sales()
Returns the value of thesales
record component.Returns the value of thesaleVelocity
record component.Returns the value of thestackSizeHistogram
record component.final String
toString()
Returns a string representation of this record class.world()
Returns the value of theworld
record 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 aHistoryResponse
record class.- Parameters:
item
- the value for theitem
record componentworld
- the value for theworld
record componentdataCenter
- the value for thedataCenter
record componentregion
- the value for theregion
record componentlastUploadTime
- the value for thelastUploadTime
record componentsales
- the value for thesales
record componentsaleVelocity
- the value for thesaleVelocity
record componentstackSizeHistogram
- the value for thestackSizeHistogram
record 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 theitem
record component.- Returns:
- the value of the
item
record component
-
world
Returns the value of theworld
record component.- Returns:
- the value of the
world
record component
-
dataCenter
Returns the value of thedataCenter
record component.- Returns:
- the value of the
dataCenter
record component
-
region
Returns the value of theregion
record component.- Returns:
- the value of the
region
record component
-
lastUploadTime
Returns the value of thelastUploadTime
record component.- Returns:
- the value of the
lastUploadTime
record component
-
sales
Returns the value of thesales
record component.- Returns:
- the value of the
sales
record component
-
saleVelocity
Returns the value of thesaleVelocity
record component.- Returns:
- the value of the
saleVelocity
record component
-
stackSizeHistogram
Returns the value of thestackSizeHistogram
record component.- Returns:
- the value of the
stackSizeHistogram
record component
-