List of usage examples for com.google.common.primitives Longs hashCode
public static int hashCode(long value)
From source file:com.b2international.commons.collections.UuidLongMap.java
private int hash(final long lsbKey, final long msbKey) { int h = 31 * Longs.hashCode(lsbKey) + Longs.hashCode(msbKey); h ^= (h >>> 20) ^ (h >>> 12); return h ^ (h >>> 7) ^ (h >>> 4); }
From source file:org.cinchapi.concourse.Timestamp.java
@Override public int hashCode() { return Longs.hashCode(microseconds); }
From source file:com.cinchapi.concourse.Link.java
@Override public int hashCode() { return Longs.hashCode(record); }
From source file:org.apache.tajo.datum.TimestampDatum.java
@Override public int hashCode() { return Longs.hashCode(timestamp); }
From source file:com.pfarrell.gps.statements.AbstractNmeaStatement.java
@Override public int hashCode() { int rval = Longs.hashCode(counter) << 13 + getInputString().hashCode(); return rval; }
From source file:com.cinchapi.concourse.Timestamp.java
@Override public int hashCode() { return isString() ? description.hashCode() : Longs.hashCode(microseconds); }
From source file:com.wealdtech.WID.java
@Override public int hashCode() { if (hasSubId()) { return Objects.hashCode(this.id, this.subId.get()); } else {// www. j av a 2s. co m return Longs.hashCode(this.id); } }
From source file:fr.inria.eventcloud.api.Quadruple.java
/** * {@inheritDoc}// w ww. ja va 2 s. c o m */ @Override public int hashCode() { if (this.nodesHashCode == 0) { this.nodesHashCode = 31 + Arrays.hashCode(this.nodes); } int hash = this.nodesHashCode; hash = hash * 31 + Longs.hashCode(this.publicationTime); if (this.publicationSource != null) { hash = hash * 31 + this.publicationSource.hashCode(); } return hash; }
From source file:com.google.location.lbs.gnss.gps.pseudorange.GpsTime.java
@Override public int hashCode() { return Longs.hashCode(getNanosSinceGpsEpoch()); }
From source file:org.dcache.nfs.chimera.ChimeraVfs.java
private static Stat fromChimeraStat(org.dcache.chimera.posix.Stat pStat, long fileid) { Stat stat = new Stat(); stat.setATime(pStat.getATime());// ww w . ja v a 2 s . c om stat.setCTime(pStat.getCTime()); stat.setMTime(pStat.getMTime()); stat.setGid(pStat.getGid()); stat.setUid(pStat.getUid()); stat.setDev(pStat.getDev()); stat.setIno(Longs.hashCode(pStat.getIno())); stat.setMode(pStat.getMode()); stat.setNlink(pStat.getNlink()); stat.setRdev(pStat.getRdev()); stat.setSize(pStat.getSize()); stat.setFileid(fileid); stat.setGeneration(pStat.getGeneration()); return stat; }