/** 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 SERVER_NAME: return isSetServerName(); case REGION_INFO: return isSetRegionInfo(); } throw new java.lang.IllegalStateException(); }
@Override public int compareTo(THRegionLocation other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = java.lang.Boolean.valueOf(isSetServerName()).compareTo(other.isSetServerName()); if (lastComparison != 0) { return lastComparison; } if (isSetServerName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverName, other.serverName); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.valueOf(isSetRegionInfo()).compareTo(other.isSetRegionInfo()); if (lastComparison != 0) { return lastComparison; } if (isSetRegionInfo()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.regionInfo, other.regionInfo); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetServerName()) ? 131071 : 524287); if (isSetServerName()) hashCode = hashCode * 8191 + serverName.hashCode(); hashCode = hashCode * 8191 + ((isSetRegionInfo()) ? 131071 : 524287); if (isSetRegionInfo()) hashCode = hashCode * 8191 + regionInfo.hashCode(); return hashCode; }
public boolean equals(THRegionLocation that) { if (that == null) return false; if (this == that) return true; boolean this_present_serverName = true && this.isSetServerName(); boolean that_present_serverName = true && that.isSetServerName(); if (this_present_serverName || that_present_serverName) { if (!(this_present_serverName && that_present_serverName)) return false; if (!this.serverName.equals(that.serverName)) return false; } boolean this_present_regionInfo = true && this.isSetRegionInfo(); boolean that_present_regionInfo = true && that.isSetRegionInfo(); if (this_present_regionInfo || that_present_regionInfo) { if (!(this_present_regionInfo && that_present_regionInfo)) return false; if (!this.regionInfo.equals(that.regionInfo)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public THRegionLocation(THRegionLocation other) { if (other.isSetServerName()) { this.serverName = new TServerName(other.serverName); } if (other.isSetRegionInfo()) { this.regionInfo = new THRegionInfo(other.regionInfo); } }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_serverName = true && (isSetServerName()); list.add(present_serverName); if (present_serverName) list.add(serverName); boolean present_regionInfo = true && (isSetRegionInfo()); list.add(present_regionInfo); if (present_regionInfo) list.add(regionInfo); return list.hashCode(); }
/** 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 SERVER_NAME: return isSetServerName(); case REGION_INFO: return isSetRegionInfo(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_serverName = true && (isSetServerName()); list.add(present_serverName); if (present_serverName) list.add(serverName); boolean present_regionInfo = true && (isSetRegionInfo()); list.add(present_regionInfo); if (present_regionInfo) list.add(regionInfo); return list.hashCode(); }
/** 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 SERVER_NAME: return isSetServerName(); case REGION_INFO: return isSetRegionInfo(); } throw new IllegalStateException(); }
@Override public int compareTo(THRegionLocation other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetServerName()).compareTo(other.isSetServerName()); if (lastComparison != 0) { return lastComparison; } if (isSetServerName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverName, other.serverName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRegionInfo()).compareTo(other.isSetRegionInfo()); if (lastComparison != 0) { return lastComparison; } if (isSetRegionInfo()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.regionInfo, other.regionInfo); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public int compareTo(THRegionLocation other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetServerName()).compareTo(other.isSetServerName()); if (lastComparison != 0) { return lastComparison; } if (isSetServerName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverName, other.serverName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRegionInfo()).compareTo(other.isSetRegionInfo()); if (lastComparison != 0) { return lastComparison; } if (isSetRegionInfo()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.regionInfo, other.regionInfo); if (lastComparison != 0) { return lastComparison; } } return 0; }
public boolean equals(THRegionLocation that) { if (that == null) return false; boolean this_present_serverName = true && this.isSetServerName(); boolean that_present_serverName = true && that.isSetServerName(); if (this_present_serverName || that_present_serverName) { if (!(this_present_serverName && that_present_serverName)) return false; if (!this.serverName.equals(that.serverName)) return false; } boolean this_present_regionInfo = true && this.isSetRegionInfo(); boolean that_present_regionInfo = true && that.isSetRegionInfo(); if (this_present_regionInfo || that_present_regionInfo) { if (!(this_present_regionInfo && that_present_regionInfo)) return false; if (!this.regionInfo.equals(that.regionInfo)) return false; } return true; }
public boolean equals(THRegionLocation that) { if (that == null) return false; boolean this_present_serverName = true && this.isSetServerName(); boolean that_present_serverName = true && that.isSetServerName(); if (this_present_serverName || that_present_serverName) { if (!(this_present_serverName && that_present_serverName)) return false; if (!this.serverName.equals(that.serverName)) return false; } boolean this_present_regionInfo = true && this.isSetRegionInfo(); boolean that_present_regionInfo = true && that.isSetRegionInfo(); if (this_present_regionInfo || that_present_regionInfo) { if (!(this_present_regionInfo && that_present_regionInfo)) return false; if (!this.regionInfo.equals(that.regionInfo)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public THRegionLocation(THRegionLocation other) { if (other.isSetServerName()) { this.serverName = new TServerName(other.serverName); } if (other.isSetRegionInfo()) { this.regionInfo = new THRegionInfo(other.regionInfo); } }
/** * Performs a deep copy on <i>other</i>. */ public THRegionLocation(THRegionLocation other) { if (other.isSetServerName()) { this.serverName = new TServerName(other.serverName); } if (other.isSetRegionInfo()) { this.regionInfo = new THRegionInfo(other.regionInfo); } }