public abstract class ShieldSpriteAttribute extends DirectionsJsonObject implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ShieldSpriteAttribute.Builder
This builder can be used to set the values describing the
ShieldSpriteAttribute . |
Constructor and Description |
---|
ShieldSpriteAttribute() |
Modifier and Type | Method and Description |
---|---|
static ShieldSpriteAttribute.Builder |
builder()
Create a new instance of this class by using the
ShieldSpriteAttribute.Builder class. |
static ShieldSpriteAttribute |
fromJson(java.lang.String json)
Create a new instance of this class by passing in a formatted valid JSON String.
|
abstract java.lang.Integer |
height()
Shield sprite's height.
|
abstract java.lang.Integer |
pixelRatio()
Shield sprite's pixel ratio.
|
abstract java.util.List<java.lang.Double> |
placeholder()
Shield sprite's placeholder (optional).
|
abstract ShieldSpriteAttribute.Builder |
toBuilder()
Convert the current
ShieldSpriteAttribute to its builder holding the currently assigned
values. |
java.lang.String |
toJson()
This takes the currently defined values found inside the
ShieldSpriteAttribute instance
and converts it to a ShieldSpriteAttribute string. |
static com.google.gson.TypeAdapter<ShieldSpriteAttribute> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
abstract java.lang.Boolean |
visible()
Shield sprite's visibility.
|
abstract java.lang.Integer |
width()
Shield sprite's width.
|
abstract java.lang.Integer |
x()
Shield sprite's x position.
|
abstract java.lang.Integer |
y()
Shield sprite's y position.
|
getUnrecognizedJsonProperties, getUnrecognizedPropertiesNames, getUnrecognizedProperty
public static ShieldSpriteAttribute.Builder builder()
ShieldSpriteAttribute.Builder
class.ShieldSpriteAttribute.Builder
for creating a new instance@NonNull public static ShieldSpriteAttribute fromJson(@NonNull java.lang.String json)
json
- a formatted valid JSON string defining a shield sprite@NonNull public abstract java.lang.Integer width()
@NonNull public abstract java.lang.Integer height()
@NonNull public abstract java.lang.Integer x()
@NonNull public abstract java.lang.Integer y()
@NonNull public abstract java.lang.Integer pixelRatio()
@Nullable public abstract java.util.List<java.lang.Double> placeholder()
@NonNull public abstract java.lang.Boolean visible()
public abstract ShieldSpriteAttribute.Builder toBuilder()
ShieldSpriteAttribute
to its builder holding the currently assigned
values. This allows you to modify a single property and then rebuild the object resulting in
an updated and modified ShieldSpriteAttribute
.ShieldSpriteAttribute.Builder
with the same values set to match the ones
defined in this ShieldSpriteAttribute
@NonNull public java.lang.String toJson()
ShieldSpriteAttribute
instance
and converts it to a ShieldSpriteAttribute
string.toJson
in class DirectionsJsonObject
ShieldSpriteAttribute
public static com.google.gson.TypeAdapter<ShieldSpriteAttribute> typeAdapter(com.google.gson.Gson gson)
gson
- the built Gson
object