diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-02-24 08:16:16 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-02-24 08:16:16 +0000 |
| commit | 3e2786a004eddf968a5fa7d5a92dff5b1b5f7734 (patch) | |
| tree | 7fa1bcc1e484cd0ef782f64baf504ee83333d397 /src/main/java/org/zwobble/mammoth/util/MammothIterables.java | |
| parent | 0dc3a12affc2e46c1a0df2899cf51a1ae3fdbd61 (diff) | |
Create internal package
Diffstat (limited to 'src/main/java/org/zwobble/mammoth/util/MammothIterables.java')
| -rw-r--r-- | src/main/java/org/zwobble/mammoth/util/MammothIterables.java | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/main/java/org/zwobble/mammoth/util/MammothIterables.java b/src/main/java/org/zwobble/mammoth/util/MammothIterables.java deleted file mode 100644 index 89caf61..0000000 --- a/src/main/java/org/zwobble/mammoth/util/MammothIterables.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.zwobble.mammoth.util; - -import com.google.common.collect.Iterables; - -import java.util.Optional; - -public class MammothIterables { - public static <T> Optional<T> tryGetLast(Iterable<T> iterable) { - return Optional.ofNullable(Iterables.getLast(iterable, null)); - } -} |
