@ThreadSafe
public class AssetFilter
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AssetFilter.AgeOrder
An order used to specify ordering of results.
|
Constructor and Description |
---|
AssetFilter(java.lang.String id)
Constructs a
AssetFilter with the specified ID. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.util.Optional<AssetFilter.AgeOrder> |
getAgeOrder()
Returns the ordering used to sort results.
|
java.util.Optional<java.lang.Integer> |
getEndAge()
Returns the end age of scan.
|
java.lang.String |
getId()
Returns the asset ID.
|
int |
getLimit()
Returns the maximum number of results to be returned.
|
java.util.Optional<java.lang.Integer> |
getStartAge()
Returns the start age of scan.
|
int |
hashCode()
Returns a hash code value for the object.
|
boolean |
isEndInclusive()
Returns the boundary condition of the end age.
|
boolean |
isStartInclusive()
Returns the boundary condition of the start age.
|
AssetFilter |
withAgeOrder(AssetFilter.AgeOrder ageOrder)
Sets an ordering of filtered results.
|
AssetFilter |
withEndAge(int age,
boolean inclusive)
Sets an end age of scan with the specified age and the boundary condition.
|
AssetFilter |
withLimit(int limit)
Sets the maximum number of results to be returned.
|
AssetFilter |
withStartAge(int age,
boolean inclusive)
Sets a start age of scan with the specified age and the boundary condition.
|
public AssetFilter(java.lang.String id)
AssetFilter
with the specified ID.id
- an asset IDpublic java.lang.String getId()
public AssetFilter withStartAge(int age, boolean inclusive)
age
- a start ageinclusive
- a boundary conditionpublic java.util.Optional<java.lang.Integer> getStartAge()
public boolean isStartInclusive()
public AssetFilter withEndAge(int age, boolean inclusive)
age
- an end ageinclusive
- a boundary conditionpublic java.util.Optional<java.lang.Integer> getEndAge()
public boolean isEndInclusive()
public AssetFilter withAgeOrder(AssetFilter.AgeOrder ageOrder)
ageOrder
- an ordering of agepublic java.util.Optional<AssetFilter.AgeOrder> getAgeOrder()
public AssetFilter withLimit(int limit)
limit
- the maximum number of results to be returnedpublic int getLimit()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object