@Override public int hashCode() { return typeInfo.hashCode(); }
@Override public int hashCode() { return 31 * elementTypeInfo.hashCode() + 1; }
@Override public int hashCode() { int result = id; result = 31 * result + name.hashCode(); result = 31 * result + (outputType != null ? outputType.hashCode() : 0); result = 31 * result + parallelism; result = 31 * result + (int) (bufferTimeout ^ (bufferTimeout >>> 32)); return result; } }
@Override public int hashCode() { return 31 * this.arrayType.hashCode() + this.componentInfo.hashCode(); }
@Override public int hashCode() { return 31 * getKeyTypeInfo().hashCode() + 1; }
@Test public void testSerialization() { final T[] testData = getTestData(); for (T typeInfo : testData) { final byte[] serialized; try { serialized = InstantiationUtil.serializeObject(typeInfo); } catch (IOException e) { throw new AssertionError("Could not serialize type information: " + typeInfo, e); } final T deserialized; try { deserialized = InstantiationUtil.deserializeObject(serialized, getClass().getClassLoader()); } catch (IOException | ClassNotFoundException e) { throw new AssertionError("Could not deserialize type information: " + typeInfo, e); } if (typeInfo.hashCode() != deserialized.hashCode() || !typeInfo.equals(deserialized)) { throw new AssertionError("Deserialized type information differs from original one."); } } }
@Override public int hashCode() { return typeInfo.hashCode(); }
@Override public int hashCode() { return 31 * elementTypeInfo.hashCode() + 1; }
@Override public int hashCode() { int result = id; result = 31 * result + name.hashCode(); result = 31 * result + (outputType != null ? outputType.hashCode() : 0); result = 31 * result + parallelism; result = 31 * result + (int) (bufferTimeout ^ (bufferTimeout >>> 32)); return result; } }
@Override public int hashCode() { int result = id; result = 31 * result + name.hashCode(); result = 31 * result + (outputType != null ? outputType.hashCode() : 0); result = 31 * result + parallelism; result = 31 * result + (int) (bufferTimeout ^ (bufferTimeout >>> 32)); return result; } }
@Override public int hashCode() { int result = id; result = 31 * result + name.hashCode(); result = 31 * result + (outputType != null ? outputType.hashCode() : 0); result = 31 * result + parallelism; result = 31 * result + (int) (bufferTimeout ^ (bufferTimeout >>> 32)); return result; } }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + typeInfo.hashCode(); return result; }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + getClass().hashCode(); result = 31 + result + getTypeInformation().hashCode(); return result; }