Back to project page sdl_tester_android.
The source code is released under:
Copyright (c) 2014, Ford Motor Company All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are m...
If you think the Android project sdl_tester_android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.livio.sdl; /* w ww . ja v a2 s.com*/ import com.livio.sdl.utils.UpCounter; public class IdGenerator{ private IdGenerator(){} private static UpCounter commandIdGenerator; public static int next(){ if(commandIdGenerator == null){ commandIdGenerator = new UpCounter(100); } return commandIdGenerator.next(); } public static void reset(){ if(commandIdGenerator != null){ commandIdGenerator.reset(); } } }