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