| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<ODataVersion>
org.odata4j.core.ODataVersion
public enum ODataVersion
V1 or V2
| Enum Constant Summary | |
|---|---|
| V1 | |
| V2 | |
| Field Summary | |
|---|---|
|  String | asString1.0 or 2.0 | 
| Method Summary | |
|---|---|
| static boolean | isVersionGreaterThan(ODataVersion v,
                     ODataVersion target)Returns true if the version v is greater than the target version | 
| static boolean | isVersionGreaterThanOrEqualTo(ODataVersion v,
                              ODataVersion target)Returns true if the version v is greater than or equal to the target version | 
| static ODataVersion | parse(String str)Identify a version by version string. | 
| static ODataVersion | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static ODataVersion[] | values()Returns an array containing the constants of this enum type, in the order they are declared. | 
| Methods inherited from class java.lang.Enum | 
|---|
| clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf | 
| Methods inherited from class java.lang.Object | 
|---|
| getClass, notify, notifyAll, wait, wait, wait | 
| Enum Constant Detail | 
|---|
public static final ODataVersion V1
public static final ODataVersion V2
| Field Detail | 
|---|
public final String asString
| Method Detail | 
|---|
public static boolean isVersionGreaterThan(ODataVersion v,
                                           ODataVersion target)
public static boolean isVersionGreaterThanOrEqualTo(ODataVersion v,
                                                    ODataVersion target)
public static ODataVersion parse(String str)
str - the version string
public static ODataVersion valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static ODataVersion[] values()
for (ODataVersion c : ODataVersion.values()) System.out.println(c);
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||