Advertisement
Guest User

Unihedron explained. (V2.0, WTHPL LICENSE)

a guest
Feb 25th, 2015
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.unihedro.test;
  2.  
  3. public class Unihedron implements Cloneable {
  4.  
  5. private static final Unihedron Unihedron;
  6. static {
  7. Unihedron = new Unihedron();
  8. }
  9.  
  10. private Unihedron() {}
  11.  
  12. /**
  13. * @see Object#clone()
  14. */
  15. @Override
  16. protected Unihedron clone() {
  17. return getUnihedron();
  18. }
  19.  
  20. /**
  21. * @return Clone.
  22. */
  23. private Unihedron getUnihedron() {
  24. return Unihedron.Unihedron.clone();
  25. }
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement