Record Class EstateInventory.CollectionStats
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.estate.EstateInventory.CollectionStats
- Record Components:
requests- the number of API requests madetotalMillis- the wall-clock time of the collectionperType- resource type to its collection figureswarnings- loud warnings (for example a truncated, oversized estate)
- Enclosing class:
EstateInventory
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionStats(int requests, long totalMillis, Map<String, EstateInventory.TypeStats> perType, List<String> warnings) Copies the collections. -
Method Summary
Modifier and TypeMethodDescriptionempty()Stats for a hand-built inventory.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.perType()Returns the value of theperTyperecord component.intrequests()Returns the value of therequestsrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalMillisrecord component.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
CollectionStats
public CollectionStats(int requests, long totalMillis, Map<String, EstateInventory.TypeStats> perType, List<String> warnings) Copies the collections.
-
-
Method Details
-
empty
Stats for a hand-built inventory.- Returns:
- empty stats
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
requests
-
totalMillis
public long totalMillis()Returns the value of thetotalMillisrecord component.- Returns:
- the value of the
totalMillisrecord component
-
perType
-
warnings
-