Tabnine Logo
GlobalStreamId.is_set_streamId
Code IndexAdd Tabnine to your IDE (free)

How to use
is_set_streamId
method
in
org.apache.storm.generated.GlobalStreamId

Best Java code snippets using org.apache.storm.generated.GlobalStreamId.is_set_streamId (Showing top 12 results out of 315)

origin: apache/storm

/**
 * Performs a deep copy on <i>other</i>.
 */
public GlobalStreamId(GlobalStreamId other) {
 if (other.is_set_componentId()) {
  this.componentId = other.componentId;
 }
 if (other.is_set_streamId()) {
  this.streamId = other.streamId;
 }
}
origin: apache/storm

@Override
public int hashCode() {
 int hashCode = 1;
 hashCode = hashCode * 8191 + ((is_set_componentId()) ? 131071 : 524287);
 if (is_set_componentId())
  hashCode = hashCode * 8191 + componentId.hashCode();
 hashCode = hashCode * 8191 + ((is_set_streamId()) ? 131071 : 524287);
 if (is_set_streamId())
  hashCode = hashCode * 8191 + streamId.hashCode();
 return hashCode;
}
origin: apache/storm

/** 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 java.lang.IllegalArgumentException();
 }
 switch (field) {
 case COMPONENT_ID:
  return is_set_componentId();
 case STREAM_ID:
  return is_set_streamId();
 }
 throw new java.lang.IllegalStateException();
}
origin: apache/storm

public boolean equals(GlobalStreamId that) {
 if (that == null)
  return false;
 if (this == that)
  return true;
 boolean this_present_componentId = true && this.is_set_componentId();
 boolean that_present_componentId = true && that.is_set_componentId();
 if (this_present_componentId || that_present_componentId) {
  if (!(this_present_componentId && that_present_componentId))
   return false;
  if (!this.componentId.equals(that.componentId))
   return false;
 }
 boolean this_present_streamId = true && this.is_set_streamId();
 boolean that_present_streamId = true && that.is_set_streamId();
 if (this_present_streamId || that_present_streamId) {
  if (!(this_present_streamId && that_present_streamId))
   return false;
  if (!this.streamId.equals(that.streamId))
   return false;
 }
 return true;
}
origin: apache/storm

@Override
public int compareTo(GlobalStreamId other) {
 if (!getClass().equals(other.getClass())) {
  return getClass().getName().compareTo(other.getClass().getName());
 }
 int lastComparison = 0;
 lastComparison = java.lang.Boolean.valueOf(is_set_componentId()).compareTo(other.is_set_componentId());
 if (lastComparison != 0) {
  return lastComparison;
 }
 if (is_set_componentId()) {
  lastComparison = org.apache.storm.thrift.TBaseHelper.compareTo(this.componentId, other.componentId);
  if (lastComparison != 0) {
   return lastComparison;
  }
 }
 lastComparison = java.lang.Boolean.valueOf(is_set_streamId()).compareTo(other.is_set_streamId());
 if (lastComparison != 0) {
  return lastComparison;
 }
 if (is_set_streamId()) {
  lastComparison = org.apache.storm.thrift.TBaseHelper.compareTo(this.streamId, other.streamId);
  if (lastComparison != 0) {
   return lastComparison;
  }
 }
 return 0;
}
origin: apache/storm

public void validate() throws org.apache.storm.thrift.TException {
 // check for required fields
 if (!is_set_componentId()) {
  throw new org.apache.storm.thrift.protocol.TProtocolException("Required field 'componentId' is unset! Struct:" + toString());
 }
 if (!is_set_streamId()) {
  throw new org.apache.storm.thrift.protocol.TProtocolException("Required field 'streamId' is unset! Struct:" + toString());
 }
 // check for sub-struct validity
}
origin: org.apache.storm/storm-core

@Override
public int hashCode() {
 List<Object> list = new ArrayList<Object>();
 boolean present_componentId = true && (is_set_componentId());
 list.add(present_componentId);
 if (present_componentId)
  list.add(componentId);
 boolean present_streamId = true && (is_set_streamId());
 list.add(present_streamId);
 if (present_streamId)
  list.add(streamId);
 return list.hashCode();
}
origin: org.apache.storm/storm-core

/**
 * Performs a deep copy on <i>other</i>.
 */
public GlobalStreamId(GlobalStreamId other) {
 if (other.is_set_componentId()) {
  this.componentId = other.componentId;
 }
 if (other.is_set_streamId()) {
  this.streamId = other.streamId;
 }
}
origin: org.apache.storm/storm-core

/** 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 COMPONENT_ID:
  return is_set_componentId();
 case STREAM_ID:
  return is_set_streamId();
 }
 throw new IllegalStateException();
}
origin: org.apache.storm/storm-core

public boolean equals(GlobalStreamId that) {
 if (that == null)
  return false;
 boolean this_present_componentId = true && this.is_set_componentId();
 boolean that_present_componentId = true && that.is_set_componentId();
 if (this_present_componentId || that_present_componentId) {
  if (!(this_present_componentId && that_present_componentId))
   return false;
  if (!this.componentId.equals(that.componentId))
   return false;
 }
 boolean this_present_streamId = true && this.is_set_streamId();
 boolean that_present_streamId = true && that.is_set_streamId();
 if (this_present_streamId || that_present_streamId) {
  if (!(this_present_streamId && that_present_streamId))
   return false;
  if (!this.streamId.equals(that.streamId))
   return false;
 }
 return true;
}
origin: org.apache.storm/storm-core

@Override
public int compareTo(GlobalStreamId other) {
 if (!getClass().equals(other.getClass())) {
  return getClass().getName().compareTo(other.getClass().getName());
 }
 int lastComparison = 0;
 lastComparison = Boolean.valueOf(is_set_componentId()).compareTo(other.is_set_componentId());
 if (lastComparison != 0) {
  return lastComparison;
 }
 if (is_set_componentId()) {
  lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.componentId, other.componentId);
  if (lastComparison != 0) {
   return lastComparison;
  }
 }
 lastComparison = Boolean.valueOf(is_set_streamId()).compareTo(other.is_set_streamId());
 if (lastComparison != 0) {
  return lastComparison;
 }
 if (is_set_streamId()) {
  lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.streamId, other.streamId);
  if (lastComparison != 0) {
   return lastComparison;
  }
 }
 return 0;
}
origin: org.apache.storm/storm-core

public void validate() throws org.apache.thrift.TException {
 // check for required fields
 if (!is_set_componentId()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'componentId' is unset! Struct:" + toString());
 }
 if (!is_set_streamId()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'streamId' is unset! Struct:" + toString());
 }
 // check for sub-struct validity
}
org.apache.storm.generatedGlobalStreamIdis_set_streamId

Javadoc

Returns true if field streamId is set (has been assigned a value) and false otherwise

Popular methods of GlobalStreamId

  • <init>
    Performs a deep copy on other.
  • get_componentId
  • get_streamId
  • equals
  • hashCode
  • is_set_componentId
    Returns true if field componentId is set (has been assigned a value) and false otherwise
  • read
  • set_componentId
  • set_componentId_isSet
  • set_streamId
  • set_streamId_isSet
  • toString
  • set_streamId_isSet,
  • toString,
  • unset_componentId,
  • unset_streamId,
  • validate,
  • write,
  • scheme

Popular in Java

  • Start an intent from android
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • Menu (java.awt)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Reference (javax.naming)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now