Package com.backblaze.b2.json
Class FieldInfo
- java.lang.Object
-
- com.backblaze.b2.json.FieldInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FieldInfo.FieldRequirement
-
Field Summary
Fields Modifier and Type Field Description int
constructorArgIndex
java.lang.String
defaultValueJsonOrNull
java.lang.reflect.Field
field
B2JsonTypeHandler
handler
boolean
isSensitive
boolean
omitNull
boolean
omitZero
FieldInfo.FieldRequirement
requirement
VersionRange
versionRange
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
compareTo(FieldInfo o)
B2JsonTypeHandler
getHandler()
boolean
getIsSensitive()
java.lang.String
getJsonMemberName()
Returns the member name that this field is serialized to in Json.java.lang.String
getName()
Deprecated.usegetJsonMemberName()
instead which is clearer.boolean
isInVersion(int version)
boolean
isRequiredAndInVersion(int version)
void
setConstructorArgIndex(int index)
-
-
-
Field Detail
-
field
public final java.lang.reflect.Field field
-
handler
public final B2JsonTypeHandler handler
-
requirement
public final FieldInfo.FieldRequirement requirement
-
defaultValueJsonOrNull
public final java.lang.String defaultValueJsonOrNull
-
versionRange
public final VersionRange versionRange
-
constructorArgIndex
public int constructorArgIndex
-
isSensitive
public final boolean isSensitive
-
omitNull
public final boolean omitNull
-
omitZero
public final boolean omitZero
-
-
Method Detail
-
getName
@Deprecated public java.lang.String getName()
Deprecated.usegetJsonMemberName()
instead which is clearer.Returns the member name that this field is serialized to in Json.
-
getJsonMemberName
public java.lang.String getJsonMemberName()
Returns the member name that this field is serialized to in Json.
-
getHandler
public B2JsonTypeHandler getHandler()
-
getIsSensitive
public boolean getIsSensitive()
-
compareTo
public int compareTo(FieldInfo o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<FieldInfo>
-
setConstructorArgIndex
public void setConstructorArgIndex(int index)
-
isInVersion
public boolean isInVersion(int version)
-
isRequiredAndInVersion
public boolean isRequiredAndInVersion(int version)
-
-