com.cedarsoft.utils.serialization
Interface RegistrySerializer.RegistryFactory<T,R extends Registry<T>>

Enclosing class:
RegistrySerializer<T,R extends Registry<T>>

public static interface RegistrySerializer.RegistryFactory<T,R extends Registry<T>>


Method Summary
 R createRegistry(java.util.List<? extends T> objects, java.util.Comparator<T> comparator)
          Creates a registry with the given initial objects
 

Method Detail

createRegistry

@NotNull
R createRegistry(@NotNull
                         java.util.List<? extends T> objects,
                         @NotNull
                         java.util.Comparator<T> comparator)
Creates a registry with the given initial objects

Parameters:
objects - the initial objects
comparator - the comparator that must be used for the created registry
Returns:
the newly created registry


Copyright © 2009 cedarsoft GmbH. All Rights Reserved.