com.hazelcast.util

## Interface VersionAwareConstructorFunction<K,V>

- Type Parameters:
    `K` - key type
    `V` - value type
  All Superinterfaces:
    ConstructorFunction<K,V>

      public interface VersionAwareConstructorFunction<K,V>
      extends ConstructorFunction<K,V>

  VersionAware version of the ConstructorFunction. It is also able to create "default" objects when the version is unknown or not-specified. In this case use the createNew method with out the version.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `V` | `createNew(K arg, Version version)` Creates a new instance of an object given the construction argument and the version of the object

    - ### Methods inherited from interface com.hazelcast.util.ConstructorFunction

      `createNew`

- - ### Method Detail

    - #### createNew

          V createNew(K arg,
                      Version version)

      Creates a new instance of an object given the construction argument and the version of the object
      Parameters:
        `arg` - construction argument
        `version` - version of the object it should create - it's cluster version bound, since objects change between release only
      Returns:
        a new instance of an object

Copyright © 2019. All rights reserved.