X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fadsal%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Futils%2FTierHelper.java;fp=opendaylight%2Fadsal%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Futils%2FTierHelper.java;h=0000000000000000000000000000000000000000;hp=c1ce6f49f05f9d11180eb3c80724c00624e75e20;hb=50f88249a65c52ba56a48852b71ce432fed2bbeb;hpb=abfa9a03550cbe9fccc4420684dced175dd6d119 diff --git a/opendaylight/adsal/sal/api/src/main/java/org/opendaylight/controller/sal/utils/TierHelper.java b/opendaylight/adsal/sal/api/src/main/java/org/opendaylight/controller/sal/utils/TierHelper.java deleted file mode 100644 index c1ce6f49f0..0000000000 --- a/opendaylight/adsal/sal/api/src/main/java/org/opendaylight/controller/sal/utils/TierHelper.java +++ /dev/null @@ -1,51 +0,0 @@ - -/* - * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - */ - -package org.opendaylight.controller.sal.utils; - -import java.util.ArrayList; -import java.util.List; -@Deprecated -public final class TierHelper { - private static TierHelper tierHelper; - public static final int unknownTierNumber = 0; - private List tierNames; - - static { - tierHelper = new TierHelper(); - } - - private TierHelper() { - tierNames = new ArrayList(); - tierNames.add("Unknown"); - tierNames.add("Access"); - tierNames.add("Distribution"); - tierNames.add("Core"); - } - - public static void setTierName(int tier, String name) { - if (tier > tierHelper.tierNames.size() - 1) { - for (int i = tierHelper.tierNames.size() - 1; i < tier; i++) { - tierHelper.tierNames.add("Unknown"); - } - } - tierHelper.tierNames.set(tier, name); - } - - public static String getTierName(int tier) { - if ((tier < 0) || (tier > tierHelper.tierNames.size() - 1)) { - return "Unknown"; - } - return tierHelper.tierNames.get(tier); - } - - public static List getTiers() { - return tierHelper.tierNames; - } -}