target.apidocs.com.google.api.services.plus.model.Person.AgeRange.html Maven / Gradle / Ivy
The newest version!
Person.AgeRange (Google+ API v1-rev20190328-1.30.10)
com.google.api.services.plus.model
Class Person.AgeRange
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.plus.model.Person.AgeRange
-
- Enclosing class:
- Person
public static final class Person.AgeRange
extends GenericJson
The age range of the person. Valid ranges are 17 or younger, 18 to 20, and 21 or older. Age is
determined from the user's birthday using Western age reckoning.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
AgeRange()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Person.AgeRange
clone()
Integer
getMax()
The age range's upper bound, if any.
Integer
getMin()
The age range's lower bound, if any.
Person.AgeRange
set(String fieldName,
Object value)
Person.AgeRange
setMax(Integer max)
The age range's upper bound, if any.
Person.AgeRange
setMin(Integer min)
The age range's lower bound, if any.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getMax
public Integer getMax()
The age range's upper bound, if any. Possible values include, but are not limited to, the
following: - "17" - for age 17 - "20" - for age 20
- Returns:
- value or
null
for none
-
setMax
public Person.AgeRange setMax(Integer max)
The age range's upper bound, if any. Possible values include, but are not limited to, the
following: - "17" - for age 17 - "20" - for age 20
- Parameters:
max
- max or null
for none
-
getMin
public Integer getMin()
The age range's lower bound, if any. Possible values include, but are not limited to, the
following: - "21" - for age 21 - "18" - for age 18
- Returns:
- value or
null
for none
-
setMin
public Person.AgeRange setMin(Integer min)
The age range's lower bound, if any. Possible values include, but are not limited to, the
following: - "21" - for age 21 - "18" - for age 18
- Parameters:
min
- min or null
for none
-
set
public Person.AgeRange set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public Person.AgeRange clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy