core/src/main/java/org/hitogo/core/HitogoHelper.java
public int generateAlertHashCode(@NonNull AlertParams params) {
        int hashCode = 0;

        String title = params.getTitle();
        hashCode += title != null ? title.hashCode() : 0;

        SparseArray<String> textMap = params.getTextMap();
        for (int i = 0; i < textMap.size(); i++) {
            String text = textMap.valueAt(i);
            hashCode += text.hashCode();
        }

        List<Button> buttonList = params.getButtons();
        for (Button button : buttonList) {
            hashCode += button.hashCode();
        }

        Button closeButton = params.getCloseButton();
        hashCode += closeButton != null ? closeButton.hashCode() : 0;

        hashCode += params.getType().ordinal();
        hashCode += params.getState() != null ? params.getState() : 0;

        return hashCode;
    }
/**
     * Generates and returns a hashcode for the given alert params object. The hashcode is generated
     * by using the given title, text elements, attached buttons, close button, type and state.
     *
     * @param params params object which is used to generate the hashcode
     * @return an Int
     * @since 1.0.0
     */
Generates and returns a hashcode for the given alert params object. The hashcode is generated
by using the given title, text elements, attached buttons, close button, type and state.

@param params params object which is used to generate the hashcode
@return an Int
@since 1.0.0
Generates and returns a hashcode for the given alert params object . The hashcode is generated by using the given title text elements attached buttons close button type and state . @param params params object which is used to generate the hashcode @return an Int @since 1 . 0 . 0
public int generateAlertHashCode(@NonNull AlertParams params) {
        int hashCode = 0;
        String title = params.getTitle();
        hashCode += title != null ? title.hashCode() : 0;
        SparseArray<String> textMap = params.getTextMap();
        for (int i = 0; i < textMap.size(); i++) {
            String text = textMap.valueAt(i);
            hashCode += text.hashCode();
        }
        List<Button> buttonList = params.getButtons();
        for (Button button : buttonList) {
            hashCode += button.hashCode();
        }
        Button closeButton = params.getCloseButton();
        hashCode += closeButton != null ? closeButton.hashCode() : 0;
        hashCode += params.getType().ordinal();
        hashCode += params.getState() != null ? params.getState() : 0;
        return hashCode;
    }
public int generateAlertHashCode ( @ NonNull AlertParams params ) { int hashCode = 0 ; String title = params . getTitle ( ) ; hashCode += title != null ? title . hashCode ( ) : 0 ; SparseArray < String > textMap = params . getTextMap ( ) ; for ( int i = 0 ; i < textMap . size ( ) ; i ++ ) { String text = textMap . valueAt ( i ) ; hashCode += text . hashCode ( ) ; } List < Button > buttonList = params . getButtons ( ) ; for ( Button button : buttonList ) { hashCode += button . hashCode ( ) ; } Button closeButton = params . getCloseButton ( ) ; hashCode += closeButton != null ? closeButton . hashCode ( ) : 0 ; hashCode += params . getType ( ) . ordinal ( ) ; hashCode += params . getState ( ) != null ? params . getState ( ) : 0 ; return hashCode ; }
Generates and returns a hashcode for the given alert params object.
Generates and returns a hashcode for the given alert params object .