public class PropertyCombinations extends Object implements Iterable<String[]>
Properties.getBindingProperties()
.Modifier and Type | Class and Description |
---|---|
static class |
PropertyCombinations.PermutationDescription
A bundle of the ordered names of binding and configuration properties and a single set value
for each that together uniquely identify a particular permutation.
|
Constructor and Description |
---|
PropertyCombinations(Properties properties,
Set<String> activeLinkerNames) |
PropertyCombinations(PropertyCombinations allPermutations,
List<String[]> values)
Copy constructor that allows the list of property values to be reset.
|
Modifier and Type | Method and Description |
---|---|
List<PropertyCombinations> |
collapseProperties()
Return a list of PropertyPermutations that represent the hard permutations
that result from collapsing the soft properties in the
PropertyPermutation's Properties object.
|
BindingProperty[] |
getOrderedProperties()
Returns the properties used to generate permutations.
|
String[] |
getOrderedPropertyValues(int permutation)
Returns the value of each property used to generate the given permutation.
|
PropertyCombinations.PermutationDescription |
getPermutationDescription(int permutationId)
Returns a unique description for the given permutation.
|
Iterator<String[]> |
iterator()
Enumerates each permutation as an array of strings such that the index of
each string in the array corresponds to the property at the same index in
the array returned from
getOrderedProperties() . |
int |
size() |
forEach, spliterator
public PropertyCombinations(Properties properties, Set<String> activeLinkerNames)
public PropertyCombinations(PropertyCombinations allPermutations, List<String[]> values)
public List<PropertyCombinations> collapseProperties()
public BindingProperty[] getOrderedProperties()
getOrderedPropertyValues(int)
.)public String[] getOrderedPropertyValues(int permutation)
getOrderedProperties()
.)public PropertyCombinations.PermutationDescription getPermutationDescription(int permutationId)
public Iterator<String[]> iterator()
getOrderedProperties()
.public int size()
Copyright © 2018. All rights reserved.