com.belerweb.social.weixin.bean
Enum QRType

java.lang.Object
  extended by java.lang.Enum<QRType>
      extended by com.belerweb.social.weixin.bean.QRType
All Implemented Interfaces:
Serializable, Comparable<QRType>

public enum QRType
extends Enum<QRType>

带参数的二维码类型


Enum Constant Summary
QR_LIMIT_SCENE
          永久二维码
QR_SCENE
          临时二维码
 
Method Summary
static QRType parse(Object val)
           
 String toString()
           
 String value()
           
static QRType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static QRType[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

QR_SCENE

public static final QRType QR_SCENE
临时二维码


QR_LIMIT_SCENE

public static final QRType QR_LIMIT_SCENE
永久二维码

Method Detail

values

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

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

valueOf

public static QRType 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

value

public String value()

toString

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

parse

public static QRType parse(Object val)


Copyright © 2014. All Rights Reserved.