Example usage for org.springframework.beans PropertyDescriptorUtils equals

List of usage examples for org.springframework.beans PropertyDescriptorUtils equals

Introduction

In this page you can find the example usage for org.springframework.beans PropertyDescriptorUtils equals.

Prototype

public static boolean equals(PropertyDescriptor pd, PropertyDescriptor otherPd) 

Source Link

Document

Compare the given PropertyDescriptors and return true if they are equivalent, i.e.

Usage

From source file:org.springframework.beans.GenericTypeAwarePropertyDescriptor.java

@Override
public boolean equals(Object other) {
    if (this == other) {
        return true;
    }//from ww  w . j  a  va 2 s  .  co  m
    if (!(other instanceof GenericTypeAwarePropertyDescriptor)) {
        return false;
    }
    GenericTypeAwarePropertyDescriptor otherPd = (GenericTypeAwarePropertyDescriptor) other;
    return (getBeanClass().equals(otherPd.getBeanClass()) && PropertyDescriptorUtils.equals(this, otherPd));
}