Changed back to previous drop system.

This commit is contained in:
MobiusDev
2016-04-29 14:47:47 +00:00
parent 570cd3e457
commit 58b33a463e
26 changed files with 587 additions and 1469 deletions

View File

@@ -29,8 +29,6 @@ import java.time.temporal.TemporalAdjusters;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
import java.util.logging.Logger;
/**
@@ -223,16 +221,4 @@ public final class Util
.orElse(dateNowWithDifferentTime.with(TemporalAdjusters.next(daysOfWeek.get(0))));
// @formatter:on
}
/**
* This method translates map to function
* @param <K> key type of the map and argument of the function
* @param <V> value type of the map and return type of the function
* @param map the input map
* @return a function which returns map.get(arg)
*/
public static <K, V> Function<K, V> mapToFunction(Map<K, V> map)
{
return key -> map.get(key);
}
}