public enum ArticleSource extends Enum<ArticleSource>
| Enum Constant and Description |
|---|
FRIEND
好友
|
HISTORY
历史消息
|
OTHER
图文页右上角菜单
|
SESSION
会话
|
TIMELINE
朋友圈
|
WEIBO
腾讯微博
|
| Modifier and Type | Method and Description |
|---|---|
static ArticleSource |
from(Integer s) |
Integer |
value() |
static ArticleSource |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ArticleSource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArticleSource SESSION
public static final ArticleSource FRIEND
public static final ArticleSource TIMELINE
public static final ArticleSource WEIBO
public static final ArticleSource HISTORY
public static final ArticleSource OTHER
public static ArticleSource[] values()
for (ArticleSource c : ArticleSource.values()) System.out.println(c);
public static ArticleSource valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Integer value()
public static ArticleSource from(Integer s)
Copyright © 2019. All rights reserved.