Mercurial Hosting > luan
annotate src/luan/impl/Pointer.java @ 775:1a68fc55a80c
simplify dir structure
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 26 Aug 2016 14:36:40 -0600 |
parents | core/src/luan/impl/Pointer.java@82f130eba7b0 |
children | fbbdd369a13a |
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 } |