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

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

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

WatchRepositoryResult.isSetRevision介绍

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

代码示例

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

public boolean equals(WatchRepositoryResult 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;
 }
 return true;
}

代码示例来源: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();
 }
 throw new IllegalStateException();
}

代码示例来源: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();
 }
 throw new IllegalStateException();
}

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

public boolean equals(WatchRepositoryResult 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;
 }
 return true;
}

代码示例来源: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);
 return list.hashCode();
}

代码示例来源: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);
 return list.hashCode();
}

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

@Override
public int compareTo(WatchRepositoryResult other) {
 if (!getClass().equals(other.getClass())) {
  return getClass().getName().compareTo(other.getClass().getName());
 }
 int lastComparison = 0;
 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) {
   return lastComparison;
  }
 }
 return 0;
}

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

@Override
public int compareTo(WatchRepositoryResult other) {
 if (!getClass().equals(other.getClass())) {
  return getClass().getName().compareTo(other.getClass().getName());
 }
 int lastComparison = 0;
 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) {
   return lastComparison;
  }
 }
 return 0;
}

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

@Override
public void write(org.apache.thrift.protocol.TProtocol prot, WatchRepositoryResult struct) throws org.apache.thrift.TException {
 TTupleProtocol oprot = (TTupleProtocol) prot;
 BitSet optionals = new BitSet();
 if (struct.isSetRevision()) {
  optionals.set(0);
 }
 oprot.writeBitSet(optionals, 1);
 if (struct.isSetRevision()) {
  struct.revision.write(oprot);
 }
}

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

@Override
public String toString() {
 StringBuilder sb = new StringBuilder("WatchRepositoryResult(");
 boolean first = true;
 if (isSetRevision()) {
  sb.append("revision:");
  if (this.revision == null) {
   sb.append("null");
  } else {
   sb.append(this.revision);
  }
  first = false;
 }
 sb.append(")");
 return sb.toString();
}

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

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

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

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

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

@Override
public void write(org.apache.thrift.protocol.TProtocol prot, WatchRepositoryResult struct) throws org.apache.thrift.TException {
 TTupleProtocol oprot = (TTupleProtocol) prot;
 BitSet optionals = new BitSet();
 if (struct.isSetRevision()) {
  optionals.set(0);
 }
 oprot.writeBitSet(optionals, 1);
 if (struct.isSetRevision()) {
  struct.revision.write(oprot);
 }
}

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

@Override
public String toString() {
 StringBuilder sb = new StringBuilder("WatchRepositoryResult(");
 boolean first = true;
 if (isSetRevision()) {
  sb.append("revision:");
  if (this.revision == null) {
   sb.append("null");
  } else {
   sb.append(this.revision);
  }
  first = false;
 }
 sb.append(")");
 return sb.toString();
}

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

public void write(org.apache.thrift.protocol.TProtocol oprot, WatchRepositoryResult 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();
  }
 }
 oprot.writeFieldStop();
 oprot.writeStructEnd();
}

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

public void write(org.apache.thrift.protocol.TProtocol oprot, WatchRepositoryResult 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();
  }
 }
 oprot.writeFieldStop();
 oprot.writeStructEnd();
}

相关文章