Java AtomicInteger getUniqueId()

Here you can find the source of getUniqueId()

Description

get Unique Id

License

Open Source License

Declaration

public static int getUniqueId() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.concurrent.atomic.AtomicInteger;

public class Main {
    private static final AtomicInteger ID_GENERATOR = new AtomicInteger();

    public static int getUniqueId() {
        return ID_GENERATOR.getAndIncrement();
    }//  ww w  .  ja  v a  2s.  com
}

Related

  1. getSerialNum()
  2. getTempFileName()
  3. getThreadDumpId()
  4. getThreadName(String pattern, String name)
  5. getTimeBasedUUID()
  6. getUuidAsFourCharacterGroups()
  7. increase(A a, Map map)
  8. isPropBlocked(String s)
  9. loadServiceCount(String id)