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 aCurrentlyShownViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of theaveragePricerecord component.floatReturns the value of theaveragePriceHQrecord component.floatReturns the value of theaveragePriceNQrecord component.floatReturns the value of thecurrentAveragePricerecord component.floatReturns the value of thecurrentAveragePriceHQrecord component.floatReturns the value of thecurrentAveragePriceNQrecord component.Returns 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.floatReturns the value of thehqSaleVelocityrecord component.item()Returns the value of theitemrecord component.Returns the value of thelastUploadTimerecord component.intReturns the value of thelistingsCountrecord component.Returns the value of thelistingViewsrecord component.intmaxPrice()Returns the value of themaxPricerecord component.intReturns the value of themaxPriceHQrecord component.intReturns the value of themaxPriceNQrecord component.intminPrice()Returns the value of theminPricerecord component.intReturns the value of theminPriceHQrecord component.intReturns the value of theminPriceNQrecord component.floatReturns the value of thenqSaleVelocityrecord component.Returns the value of therecentHistoryrecord component.intReturns the value of therecentHistoryCountrecord component.region()Returns the value of theregionrecord component.floatReturns the value of theregularSaleVelocityrecord component.Returns the value of thestackSizeHistogramrecord component.Returns the value of thestackSizeHistogramHQrecord component.Returns the value of thestackSizeHistogramNQrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theunitsSoldrecord component.world()Returns the value of theworldrecord component.Returns the value of theworldUploadTimesrecord 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 aCurrentlyShownViewrecord class.- Parameters:
item- the value for theitemrecord componentworld- the value for theworldrecord componentworldUploadTimes- the value for theworldUploadTimesrecord componentlastUploadTime- the value for thelastUploadTimerecord componentlistingViews- the value for thelistingViewsrecord componentrecentHistory- the value for therecentHistoryrecord componentdatacenter- the value for thedatacenterrecord componentregion- the value for theregionrecord componentcurrentAveragePrice- the value for thecurrentAveragePricerecord componentcurrentAveragePriceNQ- the value for thecurrentAveragePriceNQrecord componentcurrentAveragePriceHQ- the value for thecurrentAveragePriceHQrecord componentregularSaleVelocity- the value for theregularSaleVelocityrecord componentnqSaleVelocity- the value for thenqSaleVelocityrecord componenthqSaleVelocity- the value for thehqSaleVelocityrecord componentaveragePrice- the value for theaveragePricerecord componentaveragePriceNQ- the value for theaveragePriceNQrecord componentaveragePriceHQ- the value for theaveragePriceHQrecord componentminPrice- the value for theminPricerecord componentminPriceNQ- the value for theminPriceNQrecord componentminPriceHQ- the value for theminPriceHQrecord componentmaxPrice- the value for themaxPricerecord componentmaxPriceNQ- the value for themaxPriceNQrecord componentmaxPriceHQ- the value for themaxPriceHQrecord componentstackSizeHistogram- the value for thestackSizeHistogramrecord componentstackSizeHistogramNQ- the value for thestackSizeHistogramNQrecord componentstackSizeHistogramHQ- the value for thestackSizeHistogramHQrecord componentlistingsCount- the value for thelistingsCountrecord componentrecentHistoryCount- the value for therecentHistoryCountrecord componentunitsSold- the value for theunitsSoldrecord component
-
-
Method Details
-
stackSizeHistogramHQ
Returns the value of thestackSizeHistogramHQrecord component.- Returns:
- the value of the
stackSizeHistogramHQrecord component
-
stackSizeHistogramNQ
Returns the value of thestackSizeHistogramNQrecord component.- Returns:
- the value of the
stackSizeHistogramNQrecord component
-
stackSizeHistogram
Returns the value of thestackSizeHistogramrecord component.- Returns:
- the value of the
stackSizeHistogramrecord 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 theitemrecord component.- Returns:
- the value of the
itemrecord component
-
world
Returns the value of theworldrecord component.- Returns:
- the value of the
worldrecord component
-
worldUploadTimes
Returns the value of theworldUploadTimesrecord component.- Returns:
- the value of the
worldUploadTimesrecord component
-
lastUploadTime
Returns the value of thelastUploadTimerecord component.- Returns:
- the value of the
lastUploadTimerecord component
-
listingViews
Returns the value of thelistingViewsrecord component.- Returns:
- the value of the
listingViewsrecord component
-
recentHistory
Returns the value of therecentHistoryrecord component.- Returns:
- the value of the
recentHistoryrecord 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
-
currentAveragePrice
public float currentAveragePrice()Returns the value of thecurrentAveragePricerecord component.- Returns:
- the value of the
currentAveragePricerecord component
-
currentAveragePriceNQ
public float currentAveragePriceNQ()Returns the value of thecurrentAveragePriceNQrecord component.- Returns:
- the value of the
currentAveragePriceNQrecord component
-
currentAveragePriceHQ
public float currentAveragePriceHQ()Returns the value of thecurrentAveragePriceHQrecord component.- Returns:
- the value of the
currentAveragePriceHQrecord component
-
regularSaleVelocity
public float regularSaleVelocity()Returns the value of theregularSaleVelocityrecord component.- Returns:
- the value of the
regularSaleVelocityrecord component
-
nqSaleVelocity
public float nqSaleVelocity()Returns the value of thenqSaleVelocityrecord component.- Returns:
- the value of the
nqSaleVelocityrecord component
-
hqSaleVelocity
public float hqSaleVelocity()Returns the value of thehqSaleVelocityrecord component.- Returns:
- the value of the
hqSaleVelocityrecord component
-
averagePrice
public float averagePrice()Returns the value of theaveragePricerecord component.- Returns:
- the value of the
averagePricerecord component
-
averagePriceNQ
public float averagePriceNQ()Returns the value of theaveragePriceNQrecord component.- Returns:
- the value of the
averagePriceNQrecord component
-
averagePriceHQ
public float averagePriceHQ()Returns the value of theaveragePriceHQrecord component.- Returns:
- the value of the
averagePriceHQrecord component
-
minPrice
public int minPrice()Returns the value of theminPricerecord component.- Returns:
- the value of the
minPricerecord component
-
minPriceNQ
public int minPriceNQ()Returns the value of theminPriceNQrecord component.- Returns:
- the value of the
minPriceNQrecord component
-
minPriceHQ
public int minPriceHQ()Returns the value of theminPriceHQrecord component.- Returns:
- the value of the
minPriceHQrecord component
-
maxPrice
public int maxPrice()Returns the value of themaxPricerecord component.- Returns:
- the value of the
maxPricerecord component
-
maxPriceNQ
public int maxPriceNQ()Returns the value of themaxPriceNQrecord component.- Returns:
- the value of the
maxPriceNQrecord component
-
maxPriceHQ
public int maxPriceHQ()Returns the value of themaxPriceHQrecord component.- Returns:
- the value of the
maxPriceHQrecord component
-
listingsCount
public int listingsCount()Returns the value of thelistingsCountrecord component.- Returns:
- the value of the
listingsCountrecord component
-
recentHistoryCount
public int recentHistoryCount()Returns the value of therecentHistoryCountrecord component.- Returns:
- the value of the
recentHistoryCountrecord component
-
unitsSold
public int unitsSold()Returns the value of theunitsSoldrecord component.- Returns:
- the value of the
unitsSoldrecord component
-