Package org.prebid.mobile.api.data
Enum AdUnitFormat
- java.lang.Object
-
- java.lang.Enum<AdUnitFormat>
-
- org.prebid.mobile.api.data.AdUnitFormat
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AdUnitFormat>
public enum AdUnitFormat extends java.lang.Enum<AdUnitFormat>
Public ad unit format. Can be set up by a publisher.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AdUnitFormatvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static AdUnitFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BANNER
public static final AdUnitFormat BANNER
-
VIDEO
public static final AdUnitFormat VIDEO
-
DISPLAY
@Deprecated public static final AdUnitFormat DISPLAY
Deprecated.useBANNER
-
-
Method Detail
-
values
public static AdUnitFormat[] 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 (AdUnitFormat c : AdUnitFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AdUnitFormat 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
-
-