KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > util > sequence > SimpleSequence


1 /**
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.util.sequence;
5
6 public class SimpleSequence implements Sequence {
7   private long sequence;
8   
9   public synchronized long next() {
10     return ++sequence;
11   }
12
13 }
14
Popular Tags