Record Class StoreChooser.Need
java.lang.Object
java.lang.Record
ai.badmonkey.agentspaces.planner.StoreChooser.Need
- Record Components:
bytes- the bytes the root holdscopies- how many stores should hold itsealed- whether the content is sealed (sealed nodes or sealed hashing), so a blind store may hold ittier- the tier wanted, or null for anymaxPrice- the highest price per GiB-month, or null for anyavoid- stores not to choose, such as ones that failed challenges
- Enclosing class:
StoreChooser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavoid()Returns the value of theavoidrecord component.longbytes()Returns the value of thebytesrecord component.intcopies()Returns the value of thecopiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.maxPrice()Returns the value of themaxPricerecord component.maxPrice(long value) static StoreChooser.Needof(long bytes, int copies) A need of plain content in any tier at any price.booleansealed()Returns the value of thesealedrecord component.sealed(boolean value) tier()Returns the value of thetierrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Need
Creates an instance of aNeedrecord class.- Parameters:
bytes- the value for thebytesrecord componentcopies- the value for thecopiesrecord componentsealed- the value for thesealedrecord componenttier- the value for thetierrecord componentmaxPrice- the value for themaxPricerecord componentavoid- the value for theavoidrecord component
-
-
Method Details
-
of
A need of plain content in any tier at any price. -
sealed
-
tier
-
maxPrice
-
avoid
-
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. -
bytes
-
copies
-
sealed
-
tier
-
maxPrice
-
avoid
-