Mercurial Hosting > luan
comparison core/src/luan/impl/Pointer.java @ 671:82f130eba7b0
improve declarations
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 12 Apr 2016 14:44:10 -0600 |
parents | 58ebfec6178b |
children |
comparison
equal
deleted
inserted
replaced
670:58ebfec6178b | 671:82f130eba7b0 |
---|---|
5 | 5 |
6 | 6 |
7 public final class Pointer implements DeepCloneable { | 7 public final class Pointer implements DeepCloneable { |
8 public Object o; | 8 public Object o; |
9 | 9 |
10 public Pointer() {} | |
11 | |
12 public Pointer(Object o) { | |
13 this.o = o; | |
14 } | |
15 | |
10 @Override public Pointer shallowClone() { | 16 @Override public Pointer shallowClone() { |
11 return new Pointer(); | 17 return new Pointer(); |
12 } | 18 } |
13 | 19 |
14 @Override public void deepenClone(DeepCloneable clone,DeepCloner cloner) { | 20 @Override public void deepenClone(DeepCloneable clone,DeepCloner cloner) { |