From ff2ae3b22cce5009d440a66d19376c5f90a5244d Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 8 Dec 2014 21:06:07 +0100 Subject: moved builder to core package (deprecated old one, created new one, added alias). --- src/utils/lombok/core/LombokImmutableList.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/utils/lombok') diff --git a/src/utils/lombok/core/LombokImmutableList.java b/src/utils/lombok/core/LombokImmutableList.java index e0e1136c..4603f2ad 100644 --- a/src/utils/lombok/core/LombokImmutableList.java +++ b/src/utils/lombok/core/LombokImmutableList.java @@ -80,6 +80,12 @@ public final class LombokImmutableList implements Iterable { return copyOf(list); } + public static LombokImmutableList copyOf(T[] array) { + Object[] content = new Object[array.length]; + System.arraycopy(array, 0, content, 0, array.length); + return new LombokImmutableList(content); + } + private LombokImmutableList(Object[] content) { this.content = content; } -- cgit