Mercurial Hosting > luan
annotate core/src/luan/impl/Pointer.java @ 697:bd979583e45e
Added tag 0.18 for changeset b21d82ee5756
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 02 May 2016 12:33:44 -0600 |
parents | 82f130eba7b0 |
children |
rev | line source |
---|---|
670 | 1 package luan.impl; |
2 | |
3 import luan.DeepCloneable; | |
4 import luan.DeepCloner; | |
5 | |
6 | |
7 public final class Pointer implements DeepCloneable { | |
8 public Object o; | |
9 | |
671 | 10 public Pointer() {} |
11 | |
12 public Pointer(Object o) { | |
13 this.o = o; | |
14 } | |
15 | |
670 | 16 @Override public Pointer shallowClone() { |
17 return new Pointer(); | |
18 } | |
19 | |
20 @Override public void deepenClone(DeepCloneable clone,DeepCloner cloner) { | |
21 ((Pointer)clone).o = cloner.get(o); | |
22 } | |
23 } |