@Test public void testInsertValue() { DefaultKeyedValues v1 = new DefaultKeyedValues(); v1.insertValue(0, "A", 1.0); assertEquals(1.0, v1.getValue(0)); v1.insertValue(0, "B", 2.0); assertEquals(2.0, v1.getValue(0)); assertEquals(1.0, v1.getValue(1)); v1.insertValue(2, "C", 3.0); assertEquals(2.0, v1.getValue(0)); assertEquals(1.0, v1.getValue(1)); assertEquals(3.0, v1.getValue(2)); v1.insertValue(2, "B", 4.0); assertEquals(1.0, v1.getValue(0)); assertEquals(3.0, v1.getValue(1)); assertEquals(4.0, v1.getValue(2)); }
public void insertValue(int position, Comparable key, double value) { insertValue(position, key, new Double(value)); }
DefaultKeyedValues implements KeyedValues, Cloneable,
        PublicCloneable, Serializable { public void insertValue(int position, Comparable key, double value) { insertValue(position, key, new Double(value)); } }
DefaultKeyedValues implements KeyedValues, Cloneable,
        PublicCloneable, Serializable { public void insertValue(int position, Comparable key, double value) { insertValue(position, key, new Double(value)); } DefaultKeyedValues(); }
DefaultKeyedValues implements KeyedValues, Cloneable,
        PublicCloneable, Serializable { public void insertValue(int position, Comparable key, double value) { insertValue(position, key, new Double(value)); } DefaultKeyedValues(); @Override int getItemCount(); @Override Number getValue(int item); @Override Comparable getKey(int index); @Override int getIndex(Comparable key); @Override List<Comparable> getKeys(); @Override Number getValue(Comparable key); void addValue(Comparable key, double value); void addValue(Comparable key, Number value); void setValue(Comparable key, double value); void setValue(Comparable key, Number value); void insertValue(int position, Comparable key, double value); void insertValue(int position, Comparable key, Number value); void removeValue(int index); void removeValue(Comparable key); void clear(); void sortByKeys(SortOrder order); void sortByValues(SortOrder order); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone(); }
DefaultKeyedValues implements KeyedValues, Cloneable,
        PublicCloneable, Serializable { public void insertValue(int position, Comparable key, double value) { insertValue(position, key, new Double(value)); } DefaultKeyedValues(); @Override int getItemCount(); @Override Number getValue(int item); @Override Comparable getKey(int index); @Override int getIndex(Comparable key); @Override List<Comparable> getKeys(); @Override Number getValue(Comparable key); void addValue(Comparable key, double value); void addValue(Comparable key, Number value); void setValue(Comparable key, double value); void setValue(Comparable key, Number value); void insertValue(int position, Comparable key, double value); void insertValue(int position, Comparable key, Number value); void removeValue(int index); void removeValue(Comparable key); void clear(); void sortByKeys(SortOrder order); void sortByValues(SortOrder order); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone();  }