Fix checkstyle issues to enforce it
[controller.git] / opendaylight / config / config-persister-api / src / main / java / org / opendaylight / controller / config / persist / api / ConfigSnapshotHolderImpl.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.config.persist.api;
9
10 import java.util.SortedSet;
11
12 public class ConfigSnapshotHolderImpl implements ConfigSnapshotHolder {
13
14     private final String snapshot;
15     private final SortedSet<String> caps;
16     private final String fileName;
17
18     public ConfigSnapshotHolderImpl(final String configSnapshot,
19                                     final SortedSet<String> capabilities,
20                                     final String fileName) {
21         this.snapshot = configSnapshot;
22         this.caps = capabilities;
23         this.fileName = fileName;
24     }
25
26     @Override
27     public String getConfigSnapshot() {
28         return snapshot;
29     }
30
31     @Override
32     public SortedSet<String> getCapabilities() {
33         return caps;
34     }
35
36     public String getFileName() {
37         return fileName;
38     }
39
40     @Override
41     public String toString() {
42         return "snapshot='" + "ConfigSnapshotHolderImpl{"
43                 + snapshot + '\'' + ", caps="
44                 + caps + ", fileName='"
45                 + fileName + '\'' + '}';
46     }
47 }