diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2014-12-08 21:06:07 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2014-12-08 21:06:07 +0100 |
commit | ff2ae3b22cce5009d440a66d19376c5f90a5244d (patch) | |
tree | b43dc18aad8eca62d2a08b76da10fefbd7824c8b /src/utils/lombok | |
parent | 2e78a2e03f8fdba4d3d468b2900d30f7e7317641 (diff) | |
download | lombok-ff2ae3b22cce5009d440a66d19376c5f90a5244d.tar.gz lombok-ff2ae3b22cce5009d440a66d19376c5f90a5244d.tar.bz2 lombok-ff2ae3b22cce5009d440a66d19376c5f90a5244d.zip |
moved builder to core package (deprecated old one, created new one, added alias).
Diffstat (limited to 'src/utils/lombok')
-rw-r--r-- | src/utils/lombok/core/LombokImmutableList.java | 6 |
1 files changed, 6 insertions, 0 deletions
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<T> implements Iterable<T> { return copyOf(list); } + public static <T> LombokImmutableList<T> copyOf(T[] array) { + Object[] content = new Object[array.length]; + System.arraycopy(array, 0, content, 0, array.length); + return new LombokImmutableList<T>(content); + } + private LombokImmutableList(Object[] content) { this.content = content; } |