/* Copyright 2013, 2016 Nationale-Nederlanden Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package nl.nn.adapterframework.statistics; import nl.nn.adapterframework.util.DateUtils; /** * List of statistics items that can be iterated over to show all values. * * @author Gerrit van Brakel * @since 4.9.9 */ public interface ItemList { final String ITEM_FORMAT_TIME=DateUtils.FORMAT_MILLISECONDS; final String ITEM_FORMAT_PERC="##0.0"; final String PRINT_FORMAT_COUNT="#,##0"; final String PRINT_FORMAT_TIME="#,##0"; final String PRINT_FORMAT_PERC="##0.0"; final int ITEM_TYPE_INTEGER=1; final int ITEM_TYPE_TIME=2; final int ITEM_TYPE_FRACTION=3; final String ITEM_NAME_COUNT="count"; final String ITEM_NAME_MIN="min"; final String ITEM_NAME_MAX="max"; final String ITEM_NAME_AVERAGE="avg"; final String ITEM_NAME_STDDEV="stdDev"; final String ITEM_NAME_SUM="sum"; final String ITEM_NAME_SUMSQ="sumsq"; final String ITEM_VALUE_NAN="-"; int getItemCount(); String getItemName(int index); int getItemType(int index); Object getItemValue(int index); }