@Nullable Long l2(); }
/** * Updates the given element at the according {@link ManagedProvider}. * * @param element element to be updated (must not be null) * @return returns the old element or null if no element with the same key * exists * @throws IllegalStateException if no ManagedProvider is available */ public @Nullable E update(@NonNull E element);
/** * This is a data transfer object that is used to serialize metadata for a certain namespace and item. * * @author Kai Kreuzer - Initial contribution and API * */ @NonNullByDefault public class MetadataDTO { public @Nullable String value; public @Nullable Map<String, Object> config; }
@Nullable Integer i1();
/** * Convert the given {@link State} to a state which is acceptable for the given {@link Item}. * * @param state the {@link State} to be converted. * @param item the {@link Item} for which the given state will be converted. * @return the converted {@link State} according to an accepted State of the given Item. Will return the original * state in case item was {@code null}. */ @NonNull State convertToAcceptedState(@Nullable State state, @Nullable Item item); }
@ExpectWarning(value="NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE", num=1) public Object h(@Nullable Object o) { s = o; return o; }
/** * Removes the given element from the according {@link ManagedProvider}. * * @param key key of the element (must not be null) * @return element that was removed, or null if no element with the given * key exists * @throws IllegalStateException if no ManagedProvider is available */ public @Nullable E remove(@NonNull K key); }
@ExpectWarning(value="NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE", num=1) public Object k(@Nullable Object o) { s = o; return o; } }
@ExpectWarning("NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE") public Object g(@Nullable Object o) { return o; }
/** * Returns the maximum value of an item state. * * @return maximum value of an item state */ @Nullable BigDecimal getMaximum();
/** * Returns the pattern to render the state to a string. * * @return pattern */ @Nullable String getPattern();
/** * Create and return a {@link StateDescription} from this fragment. The resulting {@link StateDescription} should be * null if the fragment does not define any values. * * @return a {@link StateDescription} from this fragment. */ @Nullable StateDescription toStateDescription();
/** * Gets the value mapped to the key specified. * * @param key the key * @return the mapped value, null if no match */ @Nullable T get(String key);
/** * Decrypt the base64 encoded cipher text. * * @param base64CipherText This should be the result from the {@link #encrypt(String)} * @return plain text * @throws GeneralSecurityException all security-related exception */ @Nullable String decrypt(@Nullable String base64CipherText) throws GeneralSecurityException;
/** * Returns the user configured broadcast address, or the broadcast address of the user configured primary IPv4 if * not provided * * @return IPv4 broadcast address as a String in format xxx.xxx.xxx or * <code>null</code> if no broadcast address is found or an error occurred */ @Nullable String getConfiguredBroadcastAddress();
/** * Creates a new Item instance of type <code>itemTypeName</code> and the name <code>itemName</code> * * @param itemTypeName * @param itemName * @return a new Item of type <code>itemTypeName</code> or <code>null</code> if no matching class is known. */ @Nullable Item createItem(@Nullable String itemTypeName, String itemName);
/** * When the primary address is changed, listeners will be notified by this method. The primary address * will be in the form of a subnet ("xxx.xxx.xxx.xxx/yyy"). * * @param oldPrimaryAddress The old primary address (may be null if none specified) * @param newPrimaryAddress The new primary address (may be null if none specified) */ default void onPrimaryAddressChanged(@Nullable String oldPrimaryAddress, @Nullable String newPrimaryAddress) { // nothing to do for the default implementation } }