1 /** 2 * Copyright (C) 2012 IBM Corporation and Others. All Rights Reserved. 3 */ 4 package org.unicode.cldr.web; 5 6 /** 7 * @author srl A class of Stamp that can be updated 8 */ 9 public class MutableStamp extends Stamp { 10 getInstance()11 public static MutableStamp getInstance() { 12 return new MutableStamp(Stamp.nextStampTime()); 13 } 14 MutableStamp(long stamp)15 protected MutableStamp(long stamp) { 16 super(stamp); 17 } 18 19 /** 20 * Update the stamp to the next stamp 21 * 22 * @return 23 */ next()24 public long next() { 25 return (stamp = Stamp.nextStampTime()); 26 } 27 } 28