com.linecorp.centraldogma.internal.thrift.WatchFileResult.isSetRevision()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(8.3k)|赞(0)|评价(0)|浏览(110)

本文整理了Java中com.linecorp.centraldogma.internal.thrift.WatchFileResult.isSetRevision()方法的一些代码示例,展示了WatchFileResult.isSetRevision()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WatchFileResult.isSetRevision()方法的具体详情如下:
包路径:com.linecorp.centraldogma.internal.thrift.WatchFileResult
类名称:WatchFileResult
方法名:isSetRevision

WatchFileResult.isSetRevision介绍

[英]Returns true if field revision is set (has been assigned a value) and false otherwise
[中]如果设置了字段修订(已指定值),则返回true,否则返回false

代码示例

代码示例来源: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 REVISION:
  return isSetRevision();
 case TYPE:
  return isSetType();
 case CONTENT:
  return isSetContent();
 }
 throw new IllegalStateException();
}

代码示例来源:origin: com.linecorp.centraldogma/centraldogma-common-legacy-shaded

@Override
public int hashCode() {
 List<Object> list = new ArrayList<Object>();
 boolean present_revision = true && (isSetRevision());
 list.add(present_revision);
 if (present_revision)
  list.add(revision);
 boolean present_type = true && (isSetType());
 list.add(present_type);
 if (present_type)
  list.add(type.getValue());
 boolean present_content = true && (isSetContent());
 list.add(present_content);
 if (present_content)
  list.add(content);
 return list.hashCode();
}

代码示例来源: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 REVISION:
  return isSetRevision();
 case TYPE:
  return isSetType();
 case CONTENT:
  return isSetContent();
 }
 throw new IllegalStateException();
}

代码示例来源:origin: line/centraldogma

@Override
public int hashCode() {
 List<Object> list = new ArrayList<Object>();
 boolean present_revision = true && (isSetRevision());
 list.add(present_revision);
 if (present_revision)
  list.add(revision);
 boolean present_type = true && (isSetType());
 list.add(present_type);
 if (present_type)
  list.add(type.getValue());
 boolean present_content = true && (isSetContent());
 list.add(present_content);
 if (present_content)
  list.add(content);
 return list.hashCode();
}

代码示例来源:origin: com.linecorp.centraldogma/centraldogma-common-legacy-shaded

boolean first = true;
if (isSetRevision()) {
 sb.append("revision:");
 if (this.revision == null) {

代码示例来源:origin: line/centraldogma

boolean first = true;
if (isSetRevision()) {
 sb.append("revision:");
 if (this.revision == null) {

代码示例来源:origin: line/centraldogma

lastComparison = Boolean.valueOf(isSetRevision()).compareTo(other.isSetRevision());
if (lastComparison != 0) {
 return lastComparison;
if (isSetRevision()) {
 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revision, other.revision);
 if (lastComparison != 0) {

代码示例来源:origin: com.linecorp.centraldogma/centraldogma-common-legacy-shaded

lastComparison = Boolean.valueOf(isSetRevision()).compareTo(other.isSetRevision());
if (lastComparison != 0) {
 return lastComparison;
if (isSetRevision()) {
 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revision, other.revision);
 if (lastComparison != 0) {

代码示例来源:origin: line/centraldogma

public void write(org.apache.thrift.protocol.TProtocol oprot, WatchFileResult struct) throws org.apache.thrift.TException {
 struct.validate();
 oprot.writeStructBegin(STRUCT_DESC);
 if (struct.revision != null) {
  if (struct.isSetRevision()) {
   oprot.writeFieldBegin(REVISION_FIELD_DESC);
   struct.revision.write(oprot);
   oprot.writeFieldEnd();
  }
 }
 if (struct.type != null) {
  if (struct.isSetType()) {
   oprot.writeFieldBegin(TYPE_FIELD_DESC);
   oprot.writeI32(struct.type.getValue());
   oprot.writeFieldEnd();
  }
 }
 if (struct.content != null) {
  if (struct.isSetContent()) {
   oprot.writeFieldBegin(CONTENT_FIELD_DESC);
   oprot.writeString(struct.content);
   oprot.writeFieldEnd();
  }
 }
 oprot.writeFieldStop();
 oprot.writeStructEnd();
}

代码示例来源:origin: com.linecorp.centraldogma/centraldogma-common-legacy-shaded

public void write(org.apache.thrift.protocol.TProtocol oprot, WatchFileResult struct) throws org.apache.thrift.TException {
 struct.validate();
 oprot.writeStructBegin(STRUCT_DESC);
 if (struct.revision != null) {
  if (struct.isSetRevision()) {
   oprot.writeFieldBegin(REVISION_FIELD_DESC);
   struct.revision.write(oprot);
   oprot.writeFieldEnd();
  }
 }
 if (struct.type != null) {
  if (struct.isSetType()) {
   oprot.writeFieldBegin(TYPE_FIELD_DESC);
   oprot.writeI32(struct.type.getValue());
   oprot.writeFieldEnd();
  }
 }
 if (struct.content != null) {
  if (struct.isSetContent()) {
   oprot.writeFieldBegin(CONTENT_FIELD_DESC);
   oprot.writeString(struct.content);
   oprot.writeFieldEnd();
  }
 }
 oprot.writeFieldStop();
 oprot.writeStructEnd();
}

代码示例来源:origin: line/centraldogma

/**
 * Performs a deep copy on <i>other</i>.
 */
public WatchFileResult(WatchFileResult other) {
 if (other.isSetRevision()) {
  this.revision = new Revision(other.revision);
 }
 if (other.isSetType()) {
  this.type = other.type;
 }
 if (other.isSetContent()) {
  this.content = other.content;
 }
}

代码示例来源:origin: com.linecorp.centraldogma/centraldogma-common-legacy-shaded

/**
 * Performs a deep copy on <i>other</i>.
 */
public WatchFileResult(WatchFileResult other) {
 if (other.isSetRevision()) {
  this.revision = new Revision(other.revision);
 }
 if (other.isSetType()) {
  this.type = other.type;
 }
 if (other.isSetContent()) {
  this.content = other.content;
 }
}

代码示例来源:origin: line/centraldogma

@Override
public void write(org.apache.thrift.protocol.TProtocol prot, WatchFileResult struct) throws org.apache.thrift.TException {
 TTupleProtocol oprot = (TTupleProtocol) prot;
 BitSet optionals = new BitSet();
 if (struct.isSetRevision()) {
  optionals.set(0);
 }
 if (struct.isSetType()) {
  optionals.set(1);
 }
 if (struct.isSetContent()) {
  optionals.set(2);
 }
 oprot.writeBitSet(optionals, 3);
 if (struct.isSetRevision()) {
  struct.revision.write(oprot);
 }
 if (struct.isSetType()) {
  oprot.writeI32(struct.type.getValue());
 }
 if (struct.isSetContent()) {
  oprot.writeString(struct.content);
 }
}

代码示例来源:origin: line/centraldogma

public boolean equals(WatchFileResult that) {
 if (that == null)
  return false;
 boolean this_present_revision = true && this.isSetRevision();
 boolean that_present_revision = true && that.isSetRevision();
 if (this_present_revision || that_present_revision) {
  if (!(this_present_revision && that_present_revision))
   return false;
  if (!this.revision.equals(that.revision))
   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_content = true && this.isSetContent();
 boolean that_present_content = true && that.isSetContent();
 if (this_present_content || that_present_content) {
  if (!(this_present_content && that_present_content))
   return false;
  if (!this.content.equals(that.content))
   return false;
 }
 return true;
}

代码示例来源:origin: com.linecorp.centraldogma/centraldogma-common-legacy-shaded

public boolean equals(WatchFileResult that) {
 if (that == null)
  return false;
 boolean this_present_revision = true && this.isSetRevision();
 boolean that_present_revision = true && that.isSetRevision();
 if (this_present_revision || that_present_revision) {
  if (!(this_present_revision && that_present_revision))
   return false;
  if (!this.revision.equals(that.revision))
   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_content = true && this.isSetContent();
 boolean that_present_content = true && that.isSetContent();
 if (this_present_content || that_present_content) {
  if (!(this_present_content && that_present_content))
   return false;
  if (!this.content.equals(that.content))
   return false;
 }
 return true;
}

代码示例来源:origin: com.linecorp.centraldogma/centraldogma-common-legacy-shaded

@Override
public void write(org.apache.thrift.protocol.TProtocol prot, WatchFileResult struct) throws org.apache.thrift.TException {
 TTupleProtocol oprot = (TTupleProtocol) prot;
 BitSet optionals = new BitSet();
 if (struct.isSetRevision()) {
  optionals.set(0);
 }
 if (struct.isSetType()) {
  optionals.set(1);
 }
 if (struct.isSetContent()) {
  optionals.set(2);
 }
 oprot.writeBitSet(optionals, 3);
 if (struct.isSetRevision()) {
  struct.revision.write(oprot);
 }
 if (struct.isSetType()) {
  oprot.writeI32(struct.type.getValue());
 }
 if (struct.isSetContent()) {
  oprot.writeString(struct.content);
 }
}

相关文章