org.carrot2.source.boss
Enum Dimensions

java.lang.Object
  extended by java.lang.Enum<Dimensions>
      extended by org.carrot2.source.boss.Dimensions
All Implemented Interfaces:
Serializable, Comparable<Dimensions>

public enum Dimensions
extends Enum<Dimensions>

Preferred image size for BossImageSearchService.dimensions.


Enum Constant Summary
ALL
           
LARGE
           
MEDIUM
           
SMALL
           
WALLPAPER
           
WIDE_WALLPAPER
           
 
Method Summary
 String toString()
           
static Dimensions valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Dimensions[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ALL

public static final Dimensions ALL

SMALL

public static final Dimensions SMALL

MEDIUM

public static final Dimensions MEDIUM

LARGE

public static final Dimensions LARGE

WALLPAPER

public static final Dimensions WALLPAPER

WIDE_WALLPAPER

public static final Dimensions WIDE_WALLPAPER
Method Detail

values

public static final Dimensions[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Dimensions c : Dimensions.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Dimensions valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name

toString

public String toString()
Overrides:
toString in class Enum<Dimensions>


Copyright (c) Dawid Weiss, Stanislaw Osinski