urbanairship-core/src/main/java/com/urbanairship/actions/ActionRegistry.java
public Entry registerAction(@NonNull Action action, @NonNull String... names) {
        //noinspection ConstantConditions
        if (action == null) {
            throw new IllegalArgumentException("Unable to register a null action");
        }

        //noinspection ConstantConditions
        if (names == null || names.length == 0) {
            throw new IllegalArgumentException("Unable to register an action without a name.");
        }

        return registerEntry(new Entry(action, names));
    }
/**
     * Registers an action.
     * <p/>
     * If another entry is registered under specified name, it will be removed from that
     * entry and used for the new action.
     *
     * @param action The action to register
     * @param names The names the action will be registered under
     * @return The entry, or null if the action was unable to be registered
     * @throws IllegalArgumentException If the action is null, names is null, or if any of the provided
     * names is empty.
     */
Registers an action.

If another entry is registered under specified name, it will be removed from that
entry and used for the new action.

@param action The action to register
@param names The names the action will be registered under
@return The entry, or null if the action was unable to be registered
@throws IllegalArgumentException If the action is null, names is null, or if any of the provided
names is empty.
Registers an action . If another entry is registered under specified name it will be removed from that entry and used for the new action . @param action The action to register @param names The names the action will be registered under @return The entry or null if the action was unable to be registered @throws IllegalArgumentException If the action is null names is null or if any of the provided names is empty .
public Entry registerAction(@NonNull Action action, @NonNull String... names) {
        if (action == null) {
            throw new IllegalArgumentException("Unable to register a null action");
        }
        if (names == null || names.length == 0) {
            throw new IllegalArgumentException("Unable to register an action without a name.");
        }
        return registerEntry(new Entry(action, names));
    }
public Entry registerAction ( @ NonNull Action action , @ NonNull String ... names ) { if ( action == null ) { throw new IllegalArgumentException ( "Unable to register a null action" ) ; } if ( names == null || names . length == 0 ) { throw new IllegalArgumentException ( "Unable to register an action without a name." ) ; } return registerEntry ( new Entry ( action , names ) ) ; }
Registers an action.
Registers an action .
//noinspection ConstantConditions //noinspection ConstantConditions