Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.noodlesandwich.rekord.keys;
 
 
 public final class NamedKey<T, V> extends Key<T, V> {
     private final String name;
    public NamedKey(String name) {
        this. = name;
    }
    @Override
    public <NewV> Key<T, NewV> that(Transformer<V, NewV> transformer) {
        return new TransformingKey<>(thistransformer);
    }
    @Override
    public Properties storeTo(Properties properties, V value) {
        return properties.with(new Property<>(thisvalue));
    }
    @SuppressWarnings("unchecked")
    @Override
    public V retrieveFrom(Properties properties) {
        return (V) properties.get(this);
    }
    @Override
    public String toString() {
        return ;
    }
New to GrepCode? Check out our FAQ X