Package com.iizigo.prop
Class PatternManager.CategoryPatterns
- java.lang.Object
- com.iizigo.prop.PatternManager.CategoryPatterns
- All Implemented Interfaces:
java.util.Comparator<PatternManager.CategoryPatterns>
- Enclosing class:
- PatternManager
public static class PatternManager.CategoryPatterns extends java.lang.Object implements java.util.Comparator<PatternManager.CategoryPatterns>
Class for the value type category containing the patterns.
Field Summary
Fields Modifier and Type Field Description Value.Category
category
The value type category.java.util.ArrayList<java.lang.String[]>
patterns
The list of patterns.
Constructor Summary
Constructors Constructor Description CategoryPatterns(Value.Category category)
Constructor.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(PatternManager.CategoryPatterns o1, PatternManager.CategoryPatterns o2)
Compares two categories for sorting.
Field Detail
category
public final Value.Category category
The value type category.
patterns
public final java.util.ArrayList<java.lang.String[]> patterns
The list of patterns. Each pattern in the list is [0]=pattern, [1]=description.
Constructor Detail
CategoryPatterns
public CategoryPatterns(Value.Category category)
Constructor.
Method Detail
compare
public int compare(PatternManager.CategoryPatterns o1, PatternManager.CategoryPatterns o2)
Compares two categories for sorting.- Specified by:
compare
in interfacejava.util.Comparator<PatternManager.CategoryPatterns>