private static String describe(Multimap<String, String> cpuInfo, String s) { Collection<String> strings = cpuInfo.get(s); // TODO redo the ImmutableMultiset.toString() call so we don't get square brackets return (strings.size() == 1) ? strings.iterator().next() : ImmutableMultiset.copyOf(strings).toString(); }
private static String describe(Multimap<String, String> cpuInfo, String s) { Collection<String> strings = cpuInfo.get(s); // TODO redo the ImmutableMultiset.toString() call so we don't get square brackets return (strings.size() == 1) ? strings.iterator().next() : ImmutableMultiset.copyOf(strings).toString(); }
@Override public String toString() { return "MouseState{" + "x=" + _x + ", y=" + _y + ", dx=" + _dx + ", dy=" + _dy + ", dwheel=" + _dwheel + ", buttonStates=" + _buttonStates.toString() + ", clickCounts=" + _clickCounts.toString() + '}'; } }
@Override public String toString() { return "MouseState{" + "x=" + _x + ", y=" + _y + ", dx=" + _dx + ", dy=" + _dy + ", dwheel=" + _dwheel + ", buttonStates=" + _buttonStates.toString() + ", clickCounts=" + _clickCounts.toString() + '}'; } }