Record Class CurrentlyShownView
java.lang.Object
java.lang.Record
de.chojo.universalis.entities.views.CurrentlyShownView
public record CurrentlyShownView(Item item, World world, @Nullable Map<String,Long> worldUploadTimes, LocalDateTime lastUploadTime, List<ListingView> listingViews, List<SaleView> recentHistory, DataCenter datacenter, Region region, float currentAveragePrice, float currentAveragePriceNQ, float currentAveragePriceHQ, float regularSaleVelocity, float nqSaleVelocity, float hqSaleVelocity, float averagePrice, float averagePriceNQ, float averagePriceHQ, int minPrice, int minPriceNQ, int minPriceHQ, int maxPrice, int maxPriceNQ, int maxPriceHQ, Map<String,Integer> stackSizeHistogram, Map<String,Integer> stackSizeHistogramNQ, Map<String,Integer> stackSizeHistogramHQ, int listingsCount, int recentHistoryCount, int unitsSold)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCurrentlyShownView
(Item item, World world, @Nullable Map<String, Long> worldUploadTimes, LocalDateTime lastUploadTime, List<ListingView> listingViews, List<SaleView> recentHistory, DataCenter datacenter, Region region, float currentAveragePrice, float currentAveragePriceNQ, float currentAveragePriceHQ, float regularSaleVelocity, float nqSaleVelocity, float hqSaleVelocity, float averagePrice, float averagePriceNQ, float averagePriceHQ, int minPrice, int minPriceNQ, int minPriceHQ, int maxPrice, int maxPriceNQ, int maxPriceHQ, Map<String, Integer> stackSizeHistogram, Map<String, Integer> stackSizeHistogramNQ, Map<String, Integer> stackSizeHistogramHQ, int listingsCount, int recentHistoryCount, int unitsSold) Creates an instance of aCurrentlyShownView
record class. -
Method Summary
Modifier and TypeMethodDescriptionfloat
Returns the value of theaveragePrice
record component.float
Returns the value of theaveragePriceHQ
record component.float
Returns the value of theaveragePriceNQ
record component.float
Returns the value of thecurrentAveragePrice
record component.float
Returns the value of thecurrentAveragePriceHQ
record component.float
Returns the value of thecurrentAveragePriceNQ
record component.Returns 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.float
Returns the value of thehqSaleVelocity
record component.item()
Returns the value of theitem
record component.Returns the value of thelastUploadTime
record component.int
Returns the value of thelistingsCount
record component.Returns the value of thelistingViews
record component.int
maxPrice()
Returns the value of themaxPrice
record component.int
Returns the value of themaxPriceHQ
record component.int
Returns the value of themaxPriceNQ
record component.int
minPrice()
Returns the value of theminPrice
record component.int
Returns the value of theminPriceHQ
record component.int
Returns the value of theminPriceNQ
record component.float
Returns the value of thenqSaleVelocity
record component.Returns the value of therecentHistory
record component.int
Returns the value of therecentHistoryCount
record component.region()
Returns the value of theregion
record component.float
Returns the value of theregularSaleVelocity
record component.Returns the value of thestackSizeHistogram
record component.Returns the value of thestackSizeHistogramHQ
record component.Returns the value of thestackSizeHistogramNQ
record component.final String
toString()
Returns a string representation of this record class.int
Returns the value of theunitsSold
record component.world()
Returns the value of theworld
record component.Returns the value of theworldUploadTimes
record component.
-
Constructor Details
-
CurrentlyShownView
public CurrentlyShownView(Item item, World world, @Nullable @Nullable Map<String, Long> worldUploadTimes, LocalDateTime lastUploadTime, List<ListingView> listingViews, List<SaleView> recentHistory, DataCenter datacenter, Region region, float currentAveragePrice, float currentAveragePriceNQ, float currentAveragePriceHQ, float regularSaleVelocity, float nqSaleVelocity, float hqSaleVelocity, float averagePrice, float averagePriceNQ, float averagePriceHQ, int minPrice, int minPriceNQ, int minPriceHQ, int maxPrice, int maxPriceNQ, int maxPriceHQ, Map<String, Integer> stackSizeHistogram, Map<String, Integer> stackSizeHistogramNQ, Map<String, Integer> stackSizeHistogramHQ, int listingsCount, int recentHistoryCount, int unitsSold) Creates an instance of aCurrentlyShownView
record class.- Parameters:
item
- the value for theitem
record componentworld
- the value for theworld
record componentworldUploadTimes
- the value for theworldUploadTimes
record componentlastUploadTime
- the value for thelastUploadTime
record componentlistingViews
- the value for thelistingViews
record componentrecentHistory
- the value for therecentHistory
record componentdatacenter
- the value for thedatacenter
record componentregion
- the value for theregion
record componentcurrentAveragePrice
- the value for thecurrentAveragePrice
record componentcurrentAveragePriceNQ
- the value for thecurrentAveragePriceNQ
record componentcurrentAveragePriceHQ
- the value for thecurrentAveragePriceHQ
record componentregularSaleVelocity
- the value for theregularSaleVelocity
record componentnqSaleVelocity
- the value for thenqSaleVelocity
record componenthqSaleVelocity
- the value for thehqSaleVelocity
record componentaveragePrice
- the value for theaveragePrice
record componentaveragePriceNQ
- the value for theaveragePriceNQ
record componentaveragePriceHQ
- the value for theaveragePriceHQ
record componentminPrice
- the value for theminPrice
record componentminPriceNQ
- the value for theminPriceNQ
record componentminPriceHQ
- the value for theminPriceHQ
record componentmaxPrice
- the value for themaxPrice
record componentmaxPriceNQ
- the value for themaxPriceNQ
record componentmaxPriceHQ
- the value for themaxPriceHQ
record componentstackSizeHistogram
- the value for thestackSizeHistogram
record componentstackSizeHistogramNQ
- the value for thestackSizeHistogramNQ
record componentstackSizeHistogramHQ
- the value for thestackSizeHistogramHQ
record componentlistingsCount
- the value for thelistingsCount
record componentrecentHistoryCount
- the value for therecentHistoryCount
record componentunitsSold
- the value for theunitsSold
record component
-
-
Method Details
-
stackSizeHistogramHQ
Returns the value of thestackSizeHistogramHQ
record component.- Returns:
- the value of the
stackSizeHistogramHQ
record component
-
stackSizeHistogramNQ
Returns the value of thestackSizeHistogramNQ
record component.- Returns:
- the value of the
stackSizeHistogramNQ
record component
-
stackSizeHistogram
Returns the value of thestackSizeHistogram
record component.- Returns:
- the value of the
stackSizeHistogram
record component
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
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
-
worldUploadTimes
Returns the value of theworldUploadTimes
record component.- Returns:
- the value of the
worldUploadTimes
record component
-
lastUploadTime
Returns the value of thelastUploadTime
record component.- Returns:
- the value of the
lastUploadTime
record component
-
listingViews
Returns the value of thelistingViews
record component.- Returns:
- the value of the
listingViews
record component
-
recentHistory
Returns the value of therecentHistory
record component.- Returns:
- the value of the
recentHistory
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
-
currentAveragePrice
public float currentAveragePrice()Returns the value of thecurrentAveragePrice
record component.- Returns:
- the value of the
currentAveragePrice
record component
-
currentAveragePriceNQ
public float currentAveragePriceNQ()Returns the value of thecurrentAveragePriceNQ
record component.- Returns:
- the value of the
currentAveragePriceNQ
record component
-
currentAveragePriceHQ
public float currentAveragePriceHQ()Returns the value of thecurrentAveragePriceHQ
record component.- Returns:
- the value of the
currentAveragePriceHQ
record component
-
regularSaleVelocity
public float regularSaleVelocity()Returns the value of theregularSaleVelocity
record component.- Returns:
- the value of the
regularSaleVelocity
record component
-
nqSaleVelocity
public float nqSaleVelocity()Returns the value of thenqSaleVelocity
record component.- Returns:
- the value of the
nqSaleVelocity
record component
-
hqSaleVelocity
public float hqSaleVelocity()Returns the value of thehqSaleVelocity
record component.- Returns:
- the value of the
hqSaleVelocity
record component
-
averagePrice
public float averagePrice()Returns the value of theaveragePrice
record component.- Returns:
- the value of the
averagePrice
record component
-
averagePriceNQ
public float averagePriceNQ()Returns the value of theaveragePriceNQ
record component.- Returns:
- the value of the
averagePriceNQ
record component
-
averagePriceHQ
public float averagePriceHQ()Returns the value of theaveragePriceHQ
record component.- Returns:
- the value of the
averagePriceHQ
record component
-
minPrice
public int minPrice()Returns the value of theminPrice
record component.- Returns:
- the value of the
minPrice
record component
-
minPriceNQ
public int minPriceNQ()Returns the value of theminPriceNQ
record component.- Returns:
- the value of the
minPriceNQ
record component
-
minPriceHQ
public int minPriceHQ()Returns the value of theminPriceHQ
record component.- Returns:
- the value of the
minPriceHQ
record component
-
maxPrice
public int maxPrice()Returns the value of themaxPrice
record component.- Returns:
- the value of the
maxPrice
record component
-
maxPriceNQ
public int maxPriceNQ()Returns the value of themaxPriceNQ
record component.- Returns:
- the value of the
maxPriceNQ
record component
-
maxPriceHQ
public int maxPriceHQ()Returns the value of themaxPriceHQ
record component.- Returns:
- the value of the
maxPriceHQ
record component
-
listingsCount
public int listingsCount()Returns the value of thelistingsCount
record component.- Returns:
- the value of the
listingsCount
record component
-
recentHistoryCount
public int recentHistoryCount()Returns the value of therecentHistoryCount
record component.- Returns:
- the value of the
recentHistoryCount
record component
-
unitsSold
public int unitsSold()Returns the value of theunitsSold
record component.- Returns:
- the value of the
unitsSold
record component
-