Package yapion.serializing
Class YAPIONSerializerFlagDefault
- java.lang.Object
-
- yapion.serializing.YAPIONSerializerFlagDefault
-
public final class YAPIONSerializerFlagDefault extends java.lang.Object
A data structure to hold the default value of a specificYAPIONSerializerFlagDefault.YAPIONSerializerFlagKey
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
YAPIONSerializerFlagDefault.YAPIONSerializerFlagKey
A data structure to hold the FlagKey used byYAPIONSerializerFlags
.
-
Field Summary
Fields Modifier and Type Field Description static YAPIONSerializerFlagDefault.YAPIONSerializerFlagKey
DATA_LOSS_EXCEPTION
The key to specify if data loss should be handled silentlyfalse
or should throw an exceptiontrue
.static YAPIONSerializerFlagDefault.YAPIONSerializerFlagKey
ERROR_EXCEPTION
The key to specify if aError
should be handled silentlyfalse
or should throw an exceptiontrue
.static YAPIONSerializerFlagDefault.YAPIONSerializerFlagKey
PRIVATE_KEY_AS_NULL
The key to specify if aPrivateKey
should be serialized asnull
true
or serialized properlyfalse
.static YAPIONSerializerFlagDefault.YAPIONSerializerFlagKey
PRIVATE_KEY_EXCEPTION
The key to specify if aPrivateKey
should be serializedfalse
or should result in an thrown exceptiontrue
.
-
Constructor Summary
Constructors Constructor Description YAPIONSerializerFlagDefault(YAPIONSerializerFlagDefault.YAPIONSerializerFlagKey flagKey, boolean flagDefault)
-
Method Summary
Modifier and Type Method Description static YAPIONSerializerFlagDefault.YAPIONSerializerFlagKey
flagKey(java.lang.String key)
Static instance getter method which either creates a newYAPIONSerializerFlagDefault.YAPIONSerializerFlagKey
or returns an already existing Instance.static java.lang.String[]
flagKeys()
Retrieve every flagKey specified in the current Runtime up until now.
-
-
-
Field Detail
-
DATA_LOSS_EXCEPTION
public static final YAPIONSerializerFlagDefault.YAPIONSerializerFlagKey DATA_LOSS_EXCEPTION
The key to specify if data loss should be handled silentlyfalse
or should throw an exceptiontrue
.
-
PRIVATE_KEY_EXCEPTION
public static final YAPIONSerializerFlagDefault.YAPIONSerializerFlagKey PRIVATE_KEY_EXCEPTION
The key to specify if aPrivateKey
should be serializedfalse
or should result in an thrown exceptiontrue
.
-
PRIVATE_KEY_AS_NULL
public static final YAPIONSerializerFlagDefault.YAPIONSerializerFlagKey PRIVATE_KEY_AS_NULL
The key to specify if aPrivateKey
should be serialized asnull
true
or serialized properlyfalse
.
-
ERROR_EXCEPTION
public static final YAPIONSerializerFlagDefault.YAPIONSerializerFlagKey ERROR_EXCEPTION
The key to specify if aError
should be handled silentlyfalse
or should throw an exceptiontrue
.
-
-
Constructor Detail
-
YAPIONSerializerFlagDefault
public YAPIONSerializerFlagDefault(YAPIONSerializerFlagDefault.YAPIONSerializerFlagKey flagKey, boolean flagDefault)
-
-
Method Detail
-
flagKeys
public static java.lang.String[] flagKeys()
Retrieve every flagKey specified in the current Runtime up until now.- Returns:
- a String array with every
YAPIONSerializerFlagDefault.YAPIONSerializerFlagKey.keyName
-
flagKey
public static YAPIONSerializerFlagDefault.YAPIONSerializerFlagKey flagKey(java.lang.String key)
Static instance getter method which either creates a newYAPIONSerializerFlagDefault.YAPIONSerializerFlagKey
or returns an already existing Instance.- Parameters:
key
- the key to retrieve- Returns:
- the
YAPIONSerializerFlagDefault.YAPIONSerializerFlagKey
-
-