Class StructuredQuery.OrderBy (2.23.0)

publicstaticfinalclass StructuredQuery.OrderByimplementsSerializable

Inheritance

Object > StructuredQuery.OrderBy

Implements

Serializable

Static Methods

asc(String property)

publicstaticStructuredQuery.OrderByasc(Stringproperty)
Parameter
Name Description
property String
Returns
Type Description
StructuredQuery.OrderBy

desc(String property)

publicstaticStructuredQuery.OrderBydesc(Stringproperty)
Parameter
Name Description
property String
Returns
Type Description
StructuredQuery.OrderBy

Constructors

OrderBy(String property, StructuredQuery.OrderBy.Direction direction)

publicOrderBy(Stringproperty,StructuredQuery.OrderBy.Directiondirection)
Parameters
Name Description
property String
direction StructuredQuery.OrderBy.Direction

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDirection()

publicStructuredQuery.OrderBy.DirectiongetDirection()

Returns the order's direction.

Returns
Type Description
StructuredQuery.OrderBy.Direction

getProperty()

publicStringgetProperty()

Returns the property according to which the query result should be ordered.

Returns
Type Description
String

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

toString()

publicStringtoString()
Returns
Type Description
String
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.