public class SampleCriteria extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SampleCriteria.NameOpValue |
static class |
SampleCriteria.Oper |
Constructor and Description |
---|
SampleCriteria() |
Modifier and Type | Method and Description |
---|---|
SampleCriteria |
add(String field,
SampleCriteria.Oper operator,
Number value)
Adds an adhoc field criteria
|
SampleCriteria |
add(String field,
SampleCriteria.Oper operator,
String value) |
static SampleCriteria |
create() |
List<SampleCriteria.NameOpValue> |
getCriteriaParams() |
SampleCriteria |
project(String projectId)
Matches the given project identifier
|
SampleCriteria |
resource(String resourceId)
Matches the given resource identifier
|
SampleCriteria |
timestamp(SampleCriteria.Oper operator,
Date value)
Adds a timestamp sample criteria
|
SampleCriteria |
timestamp(SampleCriteria.Oper operator,
long value)
Adds a timestamp sample criteria
|
public static SampleCriteria create()
public SampleCriteria timestamp(SampleCriteria.Oper operator, Date value)
operator
- the operatorvalue
- the date for this timestamppublic SampleCriteria timestamp(SampleCriteria.Oper operator, long value)
operator
- the operatorvalue
- the date for this timestamppublic SampleCriteria resource(String resourceId)
resourceId
- the resource idpublic SampleCriteria project(String projectId)
projectId
- the project idpublic SampleCriteria add(String field, SampleCriteria.Oper operator, Number value)
field
- the field name (must be the JSON name)operator
- the operatorvalue
- the valuepublic SampleCriteria add(String field, SampleCriteria.Oper operator, String value)
public List<SampleCriteria.NameOpValue> getCriteriaParams()
Copyright © 2017. All rights reserved.