| Author | DaveJarvis <email> |
|---|---|
| Date | 2022-08-30 22:50:37 GMT-0700 |
| Commit | b1a5cd6c71f1fbf74e176fc01683a30c00f35fc5 |
| Parent | 5de3936 |
| Delta | 3 lines added, 34 lines removed, 31-line decrease |
| public class PluralizeTest { | ||
| private static final ScriptEngine ENGINE = | ||
| - (new ScriptEngineManager()).getEngineByName( "Renjin" ); | ||
| + new ScriptEngineManager().getEngineByName( "Renjin" ); | ||
| private static final Map<String, String> PLURAL_MAP = ofEntries( |
| -package com.keenwrite.util; | ||
| - | ||
| -import java.util.AbstractMap; | ||
| -import java.util.Map; | ||
| - | ||
| -/** | ||
| - * Convenience class for pairing two objects together; this is a synonym for | ||
| - * {@link Map.Entry}. | ||
| - * | ||
| - * @param <K> The type of key to store in this pair. | ||
| - * @param <V> The type of value to store in this pair. | ||
| - */ | ||
| -public class Pair<K, V> extends AbstractMap.SimpleImmutableEntry<K, V> { | ||
| - /** | ||
| - * Associates a new key-value pair. | ||
| - * | ||
| - * @param key The key for this key-value pairing. | ||
| - * @param value The value for this key-value pairing. | ||
| - */ | ||
| - public Pair( final K key, final V value ) { | ||
| - super( key, value ); | ||
| - } | ||
| -} | ||
| setResultConverter( dialogButton -> { | ||
| - ButtonData data = (dialogButton != null) ? dialogButton.getButtonData() : null; | ||
| - return (data == ButtonData.OK_DONE) ? link.get() : null; | ||
| + ButtonData data = dialogButton != null ? dialogButton.getButtonData() : null; | ||
| + return data == ButtonData.OK_DONE ? link.get() : null; | ||
| } ); | ||
| } | ||
| - public int getNumContributors() { | ||
| - return numContributors; | ||
| - } | ||
| - | ||
| public int[] getArrN() { | ||
| return arrN; | ||
| - } | ||
| - | ||
| - public float[] getArrWeight() { | ||
| - return arrWeight; | ||
| } | ||
| } |