Package graphql.util

Class IdGenerator


  • public class IdGenerator
    extends java.lang.Object
    An id generator that uses SecureRandom for the initial seed and Random thereafter. This provides a better balance between securely random ids and performance.
    • Constructor Summary

      Constructors 
      Constructor Description
      IdGenerator()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.UUID generateId()  
      static java.util.UUID uuid()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IdGenerator

        public IdGenerator()
    • Method Detail

      • uuid

        public static java.util.UUID uuid()
      • generateId

        public java.util.UUID generateId()