Package com.google.appengine.api.search.checkers (2.0.0)

Classes

CursorChecker

Checks values of com.google.appengine.api.search.Cursor.

DocumentChecker

Checks values of a com.google.appengine.api.search.Document.

FacetChecker

Provides checks for Facet names and values: atom or number.

FacetQueryChecker

Provides checks for faceted search related query options.

FieldChecker

Provides checks for Field names, language code, and values: text, HTML, atom or date.

GeoPointChecker

Provides checks for com.google.appengine.api.search.GeoPoint.

GetIndexesRequestChecker

Checks values of com.google.appengine.api.search.GetIndexesRequest.

GetRequestChecker

Checks values of com.google.appengine.api.search.GetRequest.

IndexChecker

Checks values of Indexes.

Preconditions

Simple static methods to be called at the start of your own methods to verify correct arguments and state. This allows constructs such as


 if (count <= 0)="" {="" throw="" new="" illegalargumentexception("must="" be="" positive:="" "="" +="" count);="" }="">

to be replaced with the more compact

     checkArgument(count > 0, "must be positive: %s", count);

Note that the sense of the expression is inverted; with Preconditions you declare what you expect to be true, just as you do with an assert or a JUnit assertTrue call.

Note:This class is a copy of a very old version of Guava's Preconditions. Please use the current Guava version instead. See Also: "https://google.github.io/guava/releases/21.0/api/docs/com/google/common/base/Preconditions.html"

QueryChecker

Checks values of com.google.appengine.api.search.Query.

QueryOnlyCustomerDocumentChecker

This class performs DocumentPb.Document validity checks for search customers that only use the query API.

QueryOptionsChecker

Checks values of com.google.appengine.api.search.QueryOptions.

SearchApiLimits

Contains limits on field values, document sizes, and other properties of objects in the Search API.

SortExpressionChecker

Checks the values of a com.google.appengine.api.search.SortExpression.

SortOptionsChecker

Checks the values of a com.google.appengine.api.search.SortOptions.