@@ -0,0 +1,2610 @@
+/*%0A * Copyright 2016 PantherCode%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *        http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.panthercode.arctic.core.helper;%0A%0Aimport org.panthercode.arctic.core.settings.context.Context;%0A%0Aimport java.time.LocalDateTime;%0Aimport java.util.Map;%0A%0A/**%0A *%0A */%0Apublic class Metrics extends Context %7B%0A%0A    /**%0A     *%0A     */%0A    private long id = 0;%0A%0A    /**%0A     *%0A     */%0A    private LocalDateTime timestamp = LocalDateTime.now();%0A%0A    /**%0A     *%0A     */%0A    private String description = %22%22;%0A%0A    /**%0A     *%0A     */%0A    public Metrics(long id) %7B%0A        this(id, %22%22);%0A    %7D%0A%0A    /**%0A     *%0A     * @param id%0A     * @param description%0A     */%0A    public Metrics(long id, String description) %7B%0A        this(id, description, 11);%0A    %7D%0A%0A    /**%0A     * @param capacity%0A     */%0A    public Metrics(long id, String description, int capacity) %7B%0A        super(capacity);%0A%0A        this.setId(id);%0A        this.setDescription(description);%0A    %7D%0A%0A    /**%0A     * @param map%0A     */%0A    public Metrics(long id, String description, Map%3C? extends String, ? extends Object%3E map) %7B%0A        super(map);%0A%0A        this.setId(id);%0A        this.setDescription(description);%0A    %7D%0A%0A    /**%0A     * @return%0A     */%0A    public long getId() %7B%0A        return this.id;%0A    %7D%0A%0A    /**%0A     * @param id%0A     */%0A    public void setId(long id) %7B%0A        this.id = (id %3C 0) ? -id : id;%0A    %7D%0A%0A    /**%0A     * @return%0A     */%0A    public String getDescription() %7B%0A        return this.description;%0A    %7D%0A%0A    /**%0A     * @param description%0A     */%0A    public void setDescription(String description) %7B%0A        this.description = description == null ? %22%22 : description;%0A    %7D%0A%0A    /**%0A     * @return%0A     */%0A    public LocalDateTime getTimestamp() %7B%0A        return this.timestamp;%0A    %7D%0A%0A    /**%0A     * @param timestamp%0A     */%0A    public void setTimestamp(LocalDateTime timestamp) %7B%0A        this.timestamp = timestamp == null ? LocalDateTime.now() : timestamp;%0A    %7D%0A%0A    /**%0A     *%0A     * @return%0A     */%0A    @Override%0A    public String toString() %7B%0A        return %22id = %22 + this.id + %22, timestamp = %22 + this.timestamp.toString();%0A    %7D%0A%7D%0A

implement Metrics