Package yapion
Enum YAPIONUtils.CheckResult
- java.lang.Object
-
- java.lang.Enum<YAPIONUtils.CheckResult>
-
- yapion.YAPIONUtils.CheckResult
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<YAPIONUtils.CheckResult>
,java.lang.constant.Constable
- Enclosing class:
- YAPIONUtils
public static enum YAPIONUtils.CheckResult extends java.lang.Enum<YAPIONUtils.CheckResult>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IS
If eitherYAPIONUtils.isBase64YAPIONObject(String)
orYAPIONUtils.isStringYAPIONObject(String)
return this a string can be a YAPION object.NOT
If eitherYAPIONUtils.isBase64YAPIONObject(String)
orYAPIONUtils.isStringYAPIONObject(String)
return this a string can definitely not be a YAPION object.PROBABLE
If eitherYAPIONUtils.isBase64YAPIONObject(String)
orYAPIONUtils.isStringYAPIONObject(String)
return this a string can be a YAPION object.
-
Method Summary
Modifier and Type Method Description static YAPIONUtils.CheckResult
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static YAPIONUtils.CheckResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT
public static final YAPIONUtils.CheckResult NOT
If eitherYAPIONUtils.isBase64YAPIONObject(String)
orYAPIONUtils.isStringYAPIONObject(String)
return this a string can definitely not be a YAPION object. This does not say anything about the string containing a YAPION object.
-
PROBABLE
public static final YAPIONUtils.CheckResult PROBABLE
If eitherYAPIONUtils.isBase64YAPIONObject(String)
orYAPIONUtils.isStringYAPIONObject(String)
return this a string can be a YAPION object. As this is not likely you should not count on this. If you want to be sure useYAPIONParser.parse(String)
orYAPIONParser.parse(InputStream)
and check if any exception gets thrown. This does not say anything about the string containing a YAPION object.
-
IS
public static final YAPIONUtils.CheckResult IS
If eitherYAPIONUtils.isBase64YAPIONObject(String)
orYAPIONUtils.isStringYAPIONObject(String)
return this a string can be a YAPION object. As this is likely you can useYAPIONParser.parse(String)
orYAPIONParser.parse(InputStream)
to try parsing this String. This does not say anything about the string containing a YAPION object.
-
-
Method Detail
-
values
public static YAPIONUtils.CheckResult[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static YAPIONUtils.CheckResult valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-