Enum ContentfulUserAgentHeaderInterceptor.Section.OperatingSystem
- java.lang.Object
-
- java.lang.Enum<ContentfulUserAgentHeaderInterceptor.Section.OperatingSystem>
-
- com.contentful.java.cda.interceptor.ContentfulUserAgentHeaderInterceptor.Section.OperatingSystem
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ContentfulUserAgentHeaderInterceptor.Section.OperatingSystem>
- Enclosing class:
- ContentfulUserAgentHeaderInterceptor.Section
public static enum ContentfulUserAgentHeaderInterceptor.Section.OperatingSystem extends java.lang.Enum<ContentfulUserAgentHeaderInterceptor.Section.OperatingSystem>
Fixed enumeration of what operating systems we support.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ContentfulUserAgentHeaderInterceptor.Section.OperatingSystemparse(java.lang.String osName)Parses a string to the closes match of a given OperatingSystemConstant.static ContentfulUserAgentHeaderInterceptor.Section.OperatingSystemvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ContentfulUserAgentHeaderInterceptor.Section.OperatingSystem[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
iOS
public static final ContentfulUserAgentHeaderInterceptor.Section.OperatingSystem iOS
-
tvOS
public static final ContentfulUserAgentHeaderInterceptor.Section.OperatingSystem tvOS
-
watchOS
public static final ContentfulUserAgentHeaderInterceptor.Section.OperatingSystem watchOS
-
macOS
public static final ContentfulUserAgentHeaderInterceptor.Section.OperatingSystem macOS
-
Windows
public static final ContentfulUserAgentHeaderInterceptor.Section.OperatingSystem Windows
-
Linux
public static final ContentfulUserAgentHeaderInterceptor.Section.OperatingSystem Linux
-
Android
public static final ContentfulUserAgentHeaderInterceptor.Section.OperatingSystem Android
-
-
Method Detail
-
values
public static ContentfulUserAgentHeaderInterceptor.Section.OperatingSystem[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ContentfulUserAgentHeaderInterceptor.Section.OperatingSystem c : ContentfulUserAgentHeaderInterceptor.Section.OperatingSystem.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContentfulUserAgentHeaderInterceptor.Section.OperatingSystem 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
-
parse
public static ContentfulUserAgentHeaderInterceptor.Section.OperatingSystem parse(java.lang.String osName)
Parses a string to the closes match of a given OperatingSystemConstant.- Parameters:
osName- the name of the os, as returned from the platform.- Returns:
- one of the
ContentfulUserAgentHeaderInterceptor.Section.OperatingSystemfields closely matching, or null if unknown. - See Also:
Platform
-
-