/** * Computes a hash code from attributes: {@code triangles}, {@code vertexCount}, {@code schemaIdentifier}, {@code coordinateSystem}, {@code attributesInOrder}, {@code attributesByName}. * @return hashCode value */ @Override public int hashCode() { int h = 5381; h += (h << 5) + triangles.hashCode(); h += (h << 5) + Long.hashCode(vertexCount); h += (h << 5) + Objects.hashCode(schemaIdentifier); h += (h << 5) + coordinateSystem.hashCode(); h += (h << 5) + (attributesInOrder().hashCode()); h += (h << 5) + attributesByName.hashCode(); return h; }
/** * Computes a hash code from attributes: {@code triangles}, {@code vertexCount}, {@code schemaIdentifier}, {@code coordinateSystem}, {@code attributesInOrder}, {@code attributesByName}, {@code metaCount}. * @return hashCode value */ @Override public int hashCode() { int h = 5381; h += (h << 5) + triangles.hashCode(); h += (h << 5) + Long.hashCode(vertexCount); h += (h << 5) + schemaIdentifier.hashCode(); h += (h << 5) + coordinateSystem.hashCode(); h += (h << 5) + (attributesInOrder().hashCode()); h += (h << 5) + attributesByName.hashCode(); h += (h << 5) + Long.hashCode(metaCount); return h; }