All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netflix.karyon.admin.rest.IndexedStringResolver Maven / Gradle / Ivy

package com.netflix.karyon.admin.rest;

import java.util.List;

public class IndexedStringResolver {
    private final int index;
    private final StringResolver converter;
    
    public IndexedStringResolver(int index, StringResolver converter) {
        this.index = index;
        this.converter = converter;
    }
    
    public Object convert(List value) throws Exception {
        return converter.convert(value.get(index));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy