com.foxinmy.weixin4j.type.card
Enum CardColor

java.lang.Object
  extended by java.lang.Enum<CardColor>
      extended by com.foxinmy.weixin4j.type.card.CardColor
All Implemented Interfaces:
Serializable, Comparable<CardColor>

public enum CardColor
extends Enum<CardColor>

卡券颜色

Since:
JDK 1.6
Author:
jinyu(foxinmy@gmail.com)
See Also:

Enum Constant Summary
Color010
          Color010
Color020
          Color020
Color030
          Color030
Color040
          Color040
Color050
          Color050
Color060
          Color060
Color070
          Color070
Color080
          Color080
Color081
          Color081
Color082
          Color082
Color090
          Color090
Color100
          Color0100
Color101
          Color0101
Color102
          Color0102
 
Method Summary
 int getB()
           
 int getG()
           
 String getHex()
           
 int getR()
           
static CardColor valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CardColor[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Color010

public static final CardColor Color010
Color010


Color020

public static final CardColor Color020
Color020


Color030

public static final CardColor Color030
Color030


Color040

public static final CardColor Color040
Color040


Color050

public static final CardColor Color050
Color050


Color060

public static final CardColor Color060
Color060


Color070

public static final CardColor Color070
Color070


Color080

public static final CardColor Color080
Color080


Color081

public static final CardColor Color081
Color081


Color082

public static final CardColor Color082
Color082


Color090

public static final CardColor Color090
Color090


Color100

public static final CardColor Color100
Color0100


Color101

public static final CardColor Color101
Color0101


Color102

public static final CardColor Color102
Color0102

Method Detail

values

public static CardColor[] 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 (CardColor c : CardColor.values())
    System.out.println(c);

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

valueOf

public static CardColor 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
NullPointerException - if the argument is null

getR

public int getR()

getG

public int getG()

getB

public int getB()

getHex

public String getHex()


Copyright © 2014–2017. All rights reserved.