List of usage examples for java.util Arrays hashCode
public static int hashCode(Object a[])
From source file:org.apache.hadoop.hbase.client.RowMutations.java
/** * @deprecated As of release 2.0.0, this will be removed in HBase 3.0.0. * No replacement// w w w . j av a2s . c o m */ @Deprecated @Override public int hashCode() { return Arrays.hashCode(row); }
From source file:com.opengamma.analytics.financial.instrument.swaption.SwaptionBermudaFixedIborDefinition.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + Arrays.hashCode(_expiryDate); result = prime * result + (_isLong ? 1231 : 1237); result = prime * result + Arrays.hashCode(_underlyingSwap); return result; }
From source file:org.niord.core.aton.vo.AtonNodeVo.java
/** {@inheritDoc} */ @Override/*from ww w . ja va2s . c o m*/ @SuppressWarnings("all") public int hashCode() { int result; long temp; result = (int) (id ^ (id >>> 32)); temp = Double.doubleToLongBits(lat); result = 31 * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(lon); result = 31 * result + (int) (temp ^ (temp >>> 32)); result = 31 * result + (user != null ? user.hashCode() : 0); result = 31 * result + (int) (uid ^ (uid >>> 32)); result = 31 * result + (visible ? 1 : 0); result = 31 * result + version; result = 31 * result + changeset; result = 31 * result + (timestamp != null ? timestamp.hashCode() : 0); result = 31 * result + Arrays.hashCode(tags); return result; }
From source file:com.milaboratory.core.tree.TreeSearchParameters.java
@Override public int hashCode() { int result;/*w ww .j ava 2 s . c o m*/ long temp; result = Arrays.hashCode(maxErrors); result = 31 * result + Arrays.hashCode(penalty); temp = Double.doubleToLongBits(maxPenalty); result = 31 * result + (int) (temp ^ (temp >>> 32)); return result; }
From source file:net.ripe.rpki.commons.crypto.crl.X509Crl.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + Arrays.hashCode(encoded); return result; }
From source file:com.impetus.ankush.common.domain.Service.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((clusterId == null) ? 0 : clusterId.hashCode()); result = prime * result + ((component == null) ? 0 : component.hashCode()); result = prime * result + Arrays.hashCode(dataBytes); result = prime * result + (ha ? 1231 : 1237); result = prime * result + ((id == null) ? 0 : id.hashCode()); result = prime * result + ((node == null) ? 0 : node.hashCode()); result = prime * result + ((service == null) ? 0 : service.hashCode()); result = prime * result + (status ? 1231 : 1237); result = prime * result + (stop ? 1231 : 1237); return result; }
From source file:org.jboss.aerogear.android.pipe.loader.LoaderAdapter.java
@Override public void save(T item, Callback<T> callback) { int id = Arrays.hashCode(new Object[] { name, item, callback }); Bundle bundle = new Bundle(); bundle.putSerializable(CALLBACK, callback); bundle.putSerializable(ITEM, requestBuilder.getBody(item)); bundle.putString(SAVE_ID, Scan.findIdValueIn(item)); bundle.putSerializable(METHOD, Methods.SAVE); manager.initLoader(id, bundle, this); }
From source file:com.sk89q.craftbook.bukkit.BukkitChangedSign.java
@Override public int hashCode() { return (getTypeId() * 1103515245 + 12345 ^ Arrays.hashCode(getLines()) * 1103515245 + 12345 ^ getX() * 1103515245 + 12345 ^ getY() * 1103515245 + 12345 ^ getZ() * 1103515245 + 12345 ^ getLocalWorld().getName().hashCode() * 1103515245 + 12345 ^ getRawData() * 1103515245 + 12345) * 1103515245 + 12345;/* w w w .ja va2s . c om*/ }
From source file:twitter4j.internal.json.TwitterAPIConfigurationJSONImpl.java
@Override public int hashCode() { int result = photoSizeLimit; result = 31 * result + shortURLLength; result = 31 * result + shortURLLengthHttps; result = 31 * result + charactersReservedPerMedia; result = 31 * result + (photoSizes != null ? photoSizes.hashCode() : 0); result = 31 * result + (nonUsernamePaths != null ? Arrays.hashCode(nonUsernamePaths) : 0); result = 31 * result + maxMediaPerUpload; return result; }
From source file:org.broadinstitute.gatk.utils.haplotype.Haplotype.java
@Override public int hashCode() { return Arrays.hashCode(getBases()); }