Android Open Source - sdl_tester_android Id Generator

From Project

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.

Java Source Code

package com.livio.sdl;
/* w ww  . ja  v  a2*/
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);
    public static void reset(){
        if(commandIdGenerator != null){

Java Source Code List