本文整理了Java中facebook4j.internal.util.z_F4JInternalParseUtil.getPrimitiveInt()
方法的一些代码示例,展示了z_F4JInternalParseUtil.getPrimitiveInt()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。z_F4JInternalParseUtil.getPrimitiveInt()
方法的具体详情如下:
包路径:facebook4j.internal.util.z_F4JInternalParseUtil
类名称:z_F4JInternalParseUtil
方法名:getPrimitiveInt
暂无
代码示例来源:origin: roundrop/facebook4j
public static boolean getFlag(String name, JSONObject json) {
int flag = getPrimitiveInt(name, json);
return flag == 1;
}
代码示例来源:origin: org.facebook4j/facebook4j-core
public static boolean getFlag(String name, JSONObject json) {
int flag = getPrimitiveInt(name, json);
return flag == 1;
}
代码示例来源:origin: apache/servicemix-bundles
public static boolean getFlag(String name, JSONObject json) {
int flag = getPrimitiveInt(name, json);
return flag == 1;
}
代码示例来源:origin: roundrop/facebook4j
public static int getPrimitiveInt(String name, JSONObject json) {
return getPrimitiveInt(getRawString(name, json));
}
public static int getPrimitiveInt(String str) {
代码示例来源:origin: org.facebook4j/facebook4j-core
public static int getPrimitiveInt(String name, JSONObject json) {
return getPrimitiveInt(getRawString(name, json));
}
public static int getPrimitiveInt(String str) {
代码示例来源:origin: apache/servicemix-bundles
public static int getPrimitiveInt(String name, JSONObject json) {
return getPrimitiveInt(getRawString(name, json));
}
public static int getPrimitiveInt(String str) {
代码示例来源:origin: org.facebook4j/facebook4j-core
/*package*/ImageJSONImpl(JSONObject json) {
if (!json.isNull("height")) {
height = getPrimitiveInt("height", json);
}
if (!json.isNull("width")) {
width = getPrimitiveInt("width", json);
}
source = getURL("source", json);
if (source == null) {
source = getURL("src", json);
}
}
代码示例来源:origin: roundrop/facebook4j
/*package*/ImageJSONImpl(JSONObject json) {
if (!json.isNull("height")) {
height = getPrimitiveInt("height", json);
}
if (!json.isNull("width")) {
width = getPrimitiveInt("width", json);
}
source = getURL("source", json);
if (source == null) {
source = getURL("src", json);
}
}
代码示例来源:origin: apache/servicemix-bundles
/*package*/ImageJSONImpl(JSONObject json) {
if (!json.isNull("height")) {
height = getPrimitiveInt("height", json);
}
if (!json.isNull("width")) {
width = getPrimitiveInt("width", json);
}
source = getURL("source", json);
if (source == null) {
source = getURL("src", json);
}
}
代码示例来源:origin: org.facebook4j/facebook4j-core
/*package*/OptionJSONImpl(JSONObject json) throws FacebookException {
try {
id = getRawString("id", json);
if (!json.isNull("from")) {
JSONObject fromJSONObject = json.getJSONObject("from");
from = new CategoryJSONImpl(fromJSONObject);
}
name = getRawString("name", json);
voteCount = getPrimitiveInt("vote_count", json);
createdTime = getISO8601Datetime("created_time", json);
votes = getPrimitiveInt("votes", json);
} catch (JSONException jsone) {
throw new FacebookException(jsone.getMessage(), jsone);
}
}
代码示例来源:origin: roundrop/facebook4j
/*package*/OptionJSONImpl(JSONObject json) throws FacebookException {
try {
id = getRawString("id", json);
if (!json.isNull("from")) {
JSONObject fromJSONObject = json.getJSONObject("from");
from = new CategoryJSONImpl(fromJSONObject);
}
name = getRawString("name", json);
voteCount = getPrimitiveInt("vote_count", json);
createdTime = getISO8601Datetime("created_time", json);
votes = getPrimitiveInt("votes", json);
} catch (JSONException jsone) {
throw new FacebookException(jsone.getMessage(), jsone);
}
}
代码示例来源:origin: apache/servicemix-bundles
/*package*/OptionJSONImpl(JSONObject json) throws FacebookException {
try {
id = getRawString("id", json);
if (!json.isNull("from")) {
JSONObject fromJSONObject = json.getJSONObject("from");
from = new CategoryJSONImpl(fromJSONObject);
}
name = getRawString("name", json);
voteCount = getPrimitiveInt("vote_count", json);
createdTime = getISO8601Datetime("created_time", json);
votes = getPrimitiveInt("votes", json);
} catch (JSONException jsone) {
throw new FacebookException(jsone.getMessage(), jsone);
}
}
代码示例来源:origin: roundrop/facebook4j
private void init(JSONObject json) throws FacebookException {
try {
user = new IdNameEntityJSONImpl(json.getJSONObject("user"));
score = getPrimitiveInt("score", json);
application = new ApplicationJSONImpl(json.getJSONObject("application"));
type = getRawString("type", json);
} catch (JSONException jsone) {
throw new FacebookException(jsone.getMessage(), jsone);
}
}
代码示例来源:origin: org.facebook4j/facebook4j-core
private void init(JSONObject json) throws FacebookException {
try {
user = new IdNameEntityJSONImpl(json.getJSONObject("user"));
score = getPrimitiveInt("score", json);
application = new ApplicationJSONImpl(json.getJSONObject("application"));
type = getRawString("type", json);
} catch (JSONException jsone) {
throw new FacebookException(jsone.getMessage(), jsone);
}
}
代码示例来源:origin: roundrop/facebook4j
private void init(JSONObject json) throws FacebookException {
id = getRawString("id", json);
name = getRawString("name", json);
if (!json.isNull("offset")) {
offset = getPrimitiveInt("offset", json);
} else {
offset = null;
}
if (!json.isNull("length")) {
length = getPrimitiveInt("length", json);
} else {
length = null;
}
type = getRawString("type", json);
if (!json.isNull("x")) {
x = getDouble("x", json);
} else {
x = null;
}
if (!json.isNull("y")) {
y = getDouble("y", json);
} else {
y = null;
}
createdTime = getISO8601Datetime("created_time", json);
}
代码示例来源:origin: apache/servicemix-bundles
private void init(JSONObject json) throws FacebookException {
try {
user = new IdNameEntityJSONImpl(json.getJSONObject("user"));
score = getPrimitiveInt("score", json);
application = new ApplicationJSONImpl(json.getJSONObject("application"));
type = getRawString("type", json);
} catch (JSONException jsone) {
throw new FacebookException(jsone.getMessage(), jsone);
}
}
代码示例来源:origin: apache/servicemix-bundles
private void init(JSONObject json) throws FacebookException {
id = getRawString("id", json);
name = getRawString("name", json);
if (!json.isNull("offset")) {
offset = getPrimitiveInt("offset", json);
} else {
offset = null;
}
if (!json.isNull("length")) {
length = getPrimitiveInt("length", json);
} else {
length = null;
}
type = getRawString("type", json);
if (!json.isNull("x")) {
x = getDouble("x", json);
} else {
x = null;
}
if (!json.isNull("y")) {
y = getDouble("y", json);
} else {
y = null;
}
createdTime = getISO8601Datetime("created_time", json);
}
代码示例来源:origin: org.facebook4j/facebook4j-core
private void init(JSONObject json) throws FacebookException {
id = getRawString("id", json);
name = getRawString("name", json);
if (!json.isNull("offset")) {
offset = getPrimitiveInt("offset", json);
} else {
offset = null;
}
if (!json.isNull("length")) {
length = getPrimitiveInt("length", json);
} else {
length = null;
}
type = getRawString("type", json);
if (!json.isNull("x")) {
x = getDouble("x", json);
} else {
x = null;
}
if (!json.isNull("y")) {
y = getDouble("y", json);
} else {
y = null;
}
createdTime = getISO8601Datetime("created_time", json);
}
代码示例来源:origin: org.facebook4j/facebook4j-core
private void init(JSONObject json) throws FacebookException {
try {
if (!json.isNull("version")) {
version = getPrimitiveInt("version", json);
}
name = getRawString("name", json);
id = getRawString("id", json);
administrator = getBoolean("administrator", json);
if (!json.isNull("bookmark_order")) {
bookmarkOrder = getPrimitiveInt("bookmark_order", json);
}
if (!json.isNull("owner")) {
owner = new IdNameEntityJSONImpl(json.getJSONObject("owner"));
}
description = getRawString("description", json);
privacy = GroupPrivacyType.getInstance(getRawString("privacy", json));
icon = getURL("icon", json);
updatedTime = getISO8601Datetime("updated_time", json);
email = getRawString("email", json);
if (!json.isNull("venue")) {
venue = new VenueJSONImpl(json.getJSONObject("venue"));
}
} catch (JSONException jsone) {
throw new FacebookException(jsone.getMessage(), jsone);
}
}
代码示例来源:origin: roundrop/facebook4j
private void init(JSONObject json) throws FacebookException {
try {
if (!json.isNull("version")) {
version = getPrimitiveInt("version", json);
}
name = getRawString("name", json);
id = getRawString("id", json);
administrator = getBoolean("administrator", json);
if (!json.isNull("bookmark_order")) {
bookmarkOrder = getPrimitiveInt("bookmark_order", json);
}
if (!json.isNull("owner")) {
owner = new IdNameEntityJSONImpl(json.getJSONObject("owner"));
}
description = getRawString("description", json);
privacy = GroupPrivacyType.getInstance(getRawString("privacy", json));
icon = getURL("icon", json);
updatedTime = getISO8601Datetime("updated_time", json);
email = getRawString("email", json);
if (!json.isNull("venue")) {
venue = new VenueJSONImpl(json.getJSONObject("venue"));
}
} catch (JSONException jsone) {
throw new FacebookException(jsone.getMessage(), jsone);
}
}
内容来源于网络,如有侵权,请联系作者删除!