IntDoublePair extends Pair<Integer, Double> implements Int2DoubleMap.Entry { @Override public double setValue(final double value) { throw new UnsupportedOperationException("Immutable"); } @Deprecated  IntDoublePair(final int first, final double second); static IntDoublePair of(final Pair<Integer, Double> pair); static IntDoublePair of(final int first, final double second); @FromString static IntDoublePair parse(final String pairStr); @Override Integer getFirst(); @Override Double getSecond(); int getFirstInt(); double getSecondDouble(); @Override int getIntKey(); @Override double getDoubleValue(); @Override double setValue(final double value); static IntDoublePair.Meta meta(); @Override IntDoublePair.Meta metaBean(); @Override Property<R> property(String propertyName); @Override Set<String> propertyNames(); @Override IntDoublePair clone(); @Override int compareTo(Pair<Integer, Double> other); int compareTo(IntDoublePair other); @Override boolean equals(Object obj); @Override int hashCode(); @Override @ToString String toString(); final int first; final double second; }
@Test(expectedExceptions = UnsupportedOperationException.class) public void testSetValue() { IntDoublePair pair = IntDoublePair.of(2, -0.3d); pair.setValue(Double.valueOf(1.2d)); }