KeyWithDefault

public class KeyWithDefault<T> implements IKeyWithDefault<T>

A generic configuration key to reduce boilerplate

Parameters

<T>

The type of the value associated with this configuration key

Constructors

Link copied to clipboard
public void KeyWithDefault(@Nonnull() QualifiedKey namespace, @Nonnull() String key, @Nonnull() IKeyDeserializer<T> serializer, @Nonnull() T defaultValue)
public void KeyWithDefault(@Nonnull() QualifiedKey qualifiedKey, @Nonnull() IKeyDeserializer<T> serializer, @Nonnull() T defaultValue)

Properties

Link copied to clipboard
public final T defaultValue
Link copied to clipboard
public final IKeyDeserializer<T> serializer

Functions

Link copied to clipboard
public boolean equals(Object o)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public IKeyDeserializer<T> getSerializer()
Link copied to clipboard
public int hashCode()