/** * Computes a hash code from attributes: {@code attributeSets}, {@code triangles}, {@code header}, {@code attributeSetsByID}. * @return hashCode value */ @Override public int hashCode() { int h = 5381; h += (h << 5) + (attributeSets().hashCode()); h += (h << 5) + Objects.hashCode(triangles); h += (h << 5) + header.hashCode(); h += (h << 5) + attributeSetsByID.hashCode(); return h; }
/** * Computes a hash code from attributes: {@code header}, {@code arrays}, {@code metadata}, {@code triangles}. * @return hashCode value */ @Override public int hashCode() { int h = 5381; h += (h << 5) + header.hashCode(); h += (h << 5) + (arrays().hashCode()); h += (h << 5) + (metadata().hashCode()); h += (h << 5) + (triangles().hashCode()); return h; }