Example usage for org.apache.commons.lang3 StringUtils equalsIgnoreCase

List of usage examples for org.apache.commons.lang3 StringUtils equalsIgnoreCase

Introduction

In this page you can find the example usage for org.apache.commons.lang3 StringUtils equalsIgnoreCase.

Prototype

public static boolean equalsIgnoreCase(final CharSequence str1, final CharSequence str2) 

Source Link

Document

Compares two CharSequences, returning true if they represent equal sequences of characters, ignoring case.

null s are handled without exceptions.

Usage

From source file:com.inkubator.hrm.web.search.FamilyRelationSearchParameter.java

public String getRelasiName() {
    if (StringUtils.equalsIgnoreCase(getKeyParam(), "relasiName")) {
        relasiName = getParameter();/*w  w  w.ja  va2s .c  o m*/
    } else {
        relasiName = null;
    }
    return relasiName;
}

From source file:com.inkubator.hrm.web.search.MedicalCareSearchParameter.java

public String getEmployeeName() {
    if (StringUtils.equalsIgnoreCase(getKeyParam(), "employeeName")) {
        employeeName = getParameter();//from ww  w .j a v a 2s .co  m
    } else {
        employeeName = null;
    }
    return employeeName;
}

From source file:com.inkubator.hrm.web.search.LoanNewTypeSearchParameter.java

public String getLoanTypeName() {
    if (StringUtils.equalsIgnoreCase(getKeyParam(), "loanTypeName")) {
        loanTypeName = getParameter();//from   w  w  w.jav a 2  s  .  co m
    } else {
        loanTypeName = null;
    }
    return loanTypeName;
}

From source file:com.inkubator.hrm.web.search.JabatanDeskripsiSearcParameter.java

public String getJobsName() {
    if (StringUtils.equalsIgnoreCase(getKeyParam(), "jobsName")) {
        jobsName = getParameter();// w w w  .j ava2 s  .c o  m
    } else {
        jobsName = null;
    }
    return jobsName;
}

From source file:com.inkubator.hrm.web.search.LoginHistorySearchParameter.java

public String getUserId() {
    if (StringUtils.equalsIgnoreCase(getKeyParam(), "userId")) {
        userId = getParameter();/*from  w  ww . jav  a  2s.co  m*/
    } else {
        userId = null;
    }
    return userId;
}

From source file:net.noday.core.utils.Captcha.java

public static boolean validate(Session s, String captcha) {
    String text = (String) s.getAttribute(CAPTCHAKEY);
    return StringUtils.equalsIgnoreCase(text, captcha);
}

From source file:com.inkubator.hrm.web.search.WtPeriodeEmpSearchParameter.java

public Date getStartPeriod() {
    Date result = null;//from w ww . ja v a2s  .  co m
    if (StringUtils.equalsIgnoreCase(getKeyParam(), "startPeriod")) {
        result = this.searchDate;
    }
    return result;
}

From source file:com.qcadoo.mes.productionCountingWithCosts.constants.PriceBasedOn.java

public static PriceBasedOn parseString(final String type) {
    for (PriceBasedOn priceType : values()) {
        if (StringUtils.equalsIgnoreCase(type, priceType.getStringValue())) {
            return priceType;
        }//  w  w w.jav a  2  s .  c  o  m
    }
    throw new IllegalArgumentException("Couldn't parse PriceBasedOn from string '" + type + "'");
}

From source file:com.inkubator.hrm.web.search.PayReceiverBankAccountSearchParameter.java

public String getNik() {
    if (StringUtils.equalsIgnoreCase(getKeyParam(), "nik")) {
        nik = getParameter();//  ww w. j a  va  2s . co m
    } else {
        nik = null;
    }
    return nik;
}

From source file:com.inkubator.hrm.web.search.RecrutimentLetterSearchParameter.java

public String getLetterType() {
    if (StringUtils.equalsIgnoreCase(getKeyParam(), "letterType")) {
        letterType = getParameter();/*from  www.ja v  a 2 s .c o m*/
    } else {
        letterType = null;
    }
    return letterType;
}