Example usage for java.lang Class equals

List of usage examples for java.lang Class equals

Introduction

In this page you can find the example usage for java.lang Class equals.

Prototype

public boolean equals(Object obj) 

Source Link

Document

Indicates whether some other object is "equal to" this one.

Usage

From source file:cz.zcu.kiv.eegdatabase.logic.controller.list.personoptparamdef.AddPersonOptParamDefValidator.java

public boolean supports(Class clazz) {
    return clazz.equals(AddPersonOptParamDefCommand.class);
}

From source file:net.mindengine.oculus.frontend.service.issue.IssueValidator.java

@SuppressWarnings("unchecked")
@Override/*from  w  w  w  . ja v a2 s  . c om*/
public boolean supports(Class clazz) {
    if (clazz.equals(Issue.class)) {
        return true;
    }
    return false;
}

From source file:sample.contact.web.validator.WebContactValidator.java

@SuppressWarnings("unchecked")
public boolean supports(Class clazz) {
    return clazz.equals(WebContact.class);
}

From source file:net.mindengine.oculus.frontend.service.LoginValidator.java

@SuppressWarnings("unchecked")
@Override/* ww w  .  j  ava 2 s  .  c o  m*/
public boolean supports(Class clazz) {
    return clazz.equals(LoginData.class);
}

From source file:org.openmrs.module.tribe.web.controller.TribeValidator.java

/**
 * /*from   w  w  w. j  av  a 2  s  . c o  m*/
 * Determines if the command object being submitted is a valid type
 * 
 * @see org.springframework.validation.Validator#supports(java.lang.Class)
 */
public boolean supports(Class c) {
    return c.equals(Tribe.class);
}

From source file:sample.contact.web.validator.WebMenuValidator.java

@SuppressWarnings("unchecked")
public boolean supports(Class clazz) {
    return clazz.equals(WebMenu.class);
}

From source file:net.java.javamoney.examples.tradingapp.web.LogonValidator.java

public boolean supports(Class clazz) {
    return clazz.equals(Credentials.class);
}

From source file:net.sourceforge.subsonic.validator.DonateValidator.java

public boolean supports(Class clazz) {
    return clazz.equals(DonateCommand.class);
}

From source file:org.openmrs.web.controller.report.ReportValidator.java

/**
 * Determines if the command object being submitted is a valid type
 * /*w ww .  j  av  a2 s  .c  om*/
 * @see org.springframework.validation.Validator#supports(java.lang.Class)
 */
@SuppressWarnings("unchecked")
public boolean supports(Class c) {
    return c.equals(Report.class);
}

From source file:net.sourceforge.subsonic.validator.PremiumSettingsValidator.java

public boolean supports(Class clazz) {
    return clazz.equals(PremiumSettingsCommand.class);
}