Interface ObjectId.StringConstructor

  • Enclosing class:
    ObjectId

    public static interface ObjectId.StringConstructor
    Construct an instance of a key class using a String as input. Classes without a String constructor (such as those in java.lang and java.util) will use this interface for constructing new instances. The result might be a singleton or use some other strategy.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object construct​(java.lang.String s)
      Construct an instance of the class for which this instance is registered.
    • Method Detail

      • construct

        java.lang.Object construct​(java.lang.String s)
        Construct an instance of the class for which this instance is registered.
        Parameters:
        s - the parameter for construction
        Returns:
        the constructed object