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