| | |
| | | * Contains Historical information for each attribute sorted by attribute |
| | | * type. key:AttributeType value:AttrInfoWithOptions |
| | | */ |
| | | private HashMap<AttributeType,AttrHistoricalWithOptions> attributesHistorical |
| | | = new HashMap<AttributeType,AttrHistoricalWithOptions>(); |
| | | private final HashMap<AttributeType,AttrHistoricalWithOptions> attributesHistorical = new HashMap<>(); |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | |
| | | Attribute attr = Attributes.create(historicalAttrType, attrValue); |
| | | |
| | | // Set the created attribute to the operation |
| | | List<Attribute> attrList = new LinkedList<Attribute>(); |
| | | List<Attribute> attrList = new LinkedList<>(); |
| | | attrList.add(attr); |
| | | addOperation.setAttribute(historicalAttrType, attrList); |
| | | } |
| | |
| | | public static EntryHistorical newInstanceFromEntry(Entry entry) |
| | | { |
| | | AttributeType lastAttrType = null; |
| | | Set<String> lastOptions = new HashSet<String>(); |
| | | Set<String> lastOptions = new HashSet<>(); |
| | | AttrHistorical attrInfo = null; |
| | | AttrHistoricalWithOptions attrInfoWithOptions = null; |
| | | |
| | |
| | | */ |
| | | public static Iterable<FakeOperation> generateFakeOperations(Entry entry) |
| | | { |
| | | TreeMap<CSN, FakeOperation> operations = |
| | | new TreeMap<CSN, FakeOperation>(); |
| | | TreeMap<CSN, FakeOperation> operations = new TreeMap<>(); |
| | | List<Attribute> attrs = getHistoricalAttr(entry); |
| | | if (attrs != null) |
| | | { |