本文整理了Java中com.linecorp.centraldogma.internal.thrift.Query.isSetExpressions
方法的一些代码示例,展示了Query.isSetExpressions
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.isSetExpressions
方法的具体详情如下:
包路径:com.linecorp.centraldogma.internal.thrift.Query
类名称:Query
方法名:isSetExpressions
[英]Returns true if field expressions is set (has been assigned a value) and false otherwise
[中]如果设置了字段表达式(已赋值),则返回true,否则返回false
代码示例来源:origin: line/centraldogma
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case PATH:
return isSetPath();
case TYPE:
return isSetType();
case EXPRESSIONS:
return isSetExpressions();
}
throw new IllegalStateException();
}
代码示例来源:origin: line/centraldogma
@Override
public int hashCode() {
List<Object> list = new ArrayList<Object>();
boolean present_path = true && (isSetPath());
list.add(present_path);
if (present_path)
list.add(path);
boolean present_type = true && (isSetType());
list.add(present_type);
if (present_type)
list.add(type.getValue());
boolean present_expressions = true && (isSetExpressions());
list.add(present_expressions);
if (present_expressions)
list.add(expressions);
return list.hashCode();
}
代码示例来源:origin: com.linecorp.centraldogma/centraldogma-common-legacy-shaded
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case PATH:
return isSetPath();
case TYPE:
return isSetType();
case EXPRESSIONS:
return isSetExpressions();
}
throw new IllegalStateException();
}
代码示例来源:origin: com.linecorp.centraldogma/centraldogma-common-legacy-shaded
/**
* Performs a deep copy on <i>other</i>.
*/
public Query(Query other) {
if (other.isSetPath()) {
this.path = other.path;
}
if (other.isSetType()) {
this.type = other.type;
}
if (other.isSetExpressions()) {
List<String> __this__expressions = new ArrayList<String>(other.expressions);
this.expressions = __this__expressions;
}
}
代码示例来源:origin: com.linecorp.centraldogma/centraldogma-common-legacy-shaded
@Override
public int hashCode() {
List<Object> list = new ArrayList<Object>();
boolean present_path = true && (isSetPath());
list.add(present_path);
if (present_path)
list.add(path);
boolean present_type = true && (isSetType());
list.add(present_type);
if (present_type)
list.add(type.getValue());
boolean present_expressions = true && (isSetExpressions());
list.add(present_expressions);
if (present_expressions)
list.add(expressions);
return list.hashCode();
}
代码示例来源:origin: line/centraldogma
/**
* Performs a deep copy on <i>other</i>.
*/
public Query(Query other) {
if (other.isSetPath()) {
this.path = other.path;
}
if (other.isSetType()) {
this.type = other.type;
}
if (other.isSetExpressions()) {
List<String> __this__expressions = new ArrayList<String>(other.expressions);
this.expressions = __this__expressions;
}
}
代码示例来源:origin: line/centraldogma
lastComparison = Boolean.valueOf(isSetExpressions()).compareTo(other.isSetExpressions());
if (lastComparison != 0) {
return lastComparison;
if (isSetExpressions()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expressions, other.expressions);
if (lastComparison != 0) {
代码示例来源:origin: com.linecorp.centraldogma/centraldogma-common-legacy-shaded
lastComparison = Boolean.valueOf(isSetExpressions()).compareTo(other.isSetExpressions());
if (lastComparison != 0) {
return lastComparison;
if (isSetExpressions()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expressions, other.expressions);
if (lastComparison != 0) {
代码示例来源:origin: line/centraldogma
public boolean equals(Query that) {
if (that == null)
return false;
boolean this_present_path = true && this.isSetPath();
boolean that_present_path = true && that.isSetPath();
if (this_present_path || that_present_path) {
if (!(this_present_path && that_present_path))
return false;
if (!this.path.equals(that.path))
return false;
}
boolean this_present_type = true && this.isSetType();
boolean that_present_type = true && that.isSetType();
if (this_present_type || that_present_type) {
if (!(this_present_type && that_present_type))
return false;
if (!this.type.equals(that.type))
return false;
}
boolean this_present_expressions = true && this.isSetExpressions();
boolean that_present_expressions = true && that.isSetExpressions();
if (this_present_expressions || that_present_expressions) {
if (!(this_present_expressions && that_present_expressions))
return false;
if (!this.expressions.equals(that.expressions))
return false;
}
return true;
}
代码示例来源:origin: com.linecorp.centraldogma/centraldogma-common-legacy-shaded
public boolean equals(Query that) {
if (that == null)
return false;
boolean this_present_path = true && this.isSetPath();
boolean that_present_path = true && that.isSetPath();
if (this_present_path || that_present_path) {
if (!(this_present_path && that_present_path))
return false;
if (!this.path.equals(that.path))
return false;
}
boolean this_present_type = true && this.isSetType();
boolean that_present_type = true && that.isSetType();
if (this_present_type || that_present_type) {
if (!(this_present_type && that_present_type))
return false;
if (!this.type.equals(that.type))
return false;
}
boolean this_present_expressions = true && this.isSetExpressions();
boolean that_present_expressions = true && that.isSetExpressions();
if (this_present_expressions || that_present_expressions) {
if (!(this_present_expressions && that_present_expressions))
return false;
if (!this.expressions.equals(that.expressions))
return false;
}
return true;
}
内容来源于网络,如有侵权,请联系作者删除!