
com.pippsford.stencil.value.IndexedValueProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stencil Show documentation
Show all versions of stencil Show documentation
Stencil templating system
The newest version!
package com.pippsford.stencil.value;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.BitSet;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.function.BiConsumer;
import java.util.function.IntFunction;
import java.util.regex.Pattern;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
/**
* A value provider that allows access to a list. List's have a property for every index, plus "size" and "isEmpty".
*
* @author Simon Greatrix on 03/01/2021.
*/
public class IndexedValueProvider implements MutableValueProvider {
static final String P_IS_EMPTY = "isEmpty";
static final String P_SIZE = "size";
private static final Pattern INDEX = Pattern.compile("[1-9][0-9]*");
private final IntFunction
© 2015 - 2025 Weber Informatics LLC | Privacy Policy