2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.unifi.internal.api.cache;
15 import static org.openhab.binding.unifi.internal.api.cache.UniFiCache.Prefix.ID;
16 import static org.openhab.binding.unifi.internal.api.cache.UniFiCache.Prefix.NAME;
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.eclipse.jdt.annotation.Nullable;
20 import org.openhab.binding.unifi.internal.api.dto.UniFiWlan;
23 * The {@link UniFiWlanCache} is a specific implementation of {@link UniFiCache} for the purpose of caching
24 * {@link UniFiWlan} instances.
26 * The cache uses the following prefixes: <code>id</code>, <code>name</code>
28 * @author Hilbrand Bouwkamp - Initial contribution
31 class UniFiWlanCache extends UniFiCache<UniFiWlan> {
33 public UniFiWlanCache() {
38 protected @Nullable String getSuffix(final UniFiWlan wlan, final Prefix prefix) {
43 return wlan.getName();