Java Code Examples for com.fasterxml.jackson.databind.util.ClassUtil#hasClass()
The following examples show how to use
com.fasterxml.jackson.databind.util.ClassUtil#hasClass() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TypeBindings.java From lams with GNU General Public License v2.0 | 6 votes |
@Override public boolean equals(Object o) { if (o == this) return true; if (!ClassUtil.hasClass(o, getClass())) { return false; } TypeBindings other = (TypeBindings) o; int len = _types.length; if (len != other.size()) { return false; } JavaType[] otherTypes = other._types; for (int i = 0; i < len; ++i) { if (!otherTypes[i].equals(_types[i])) { return false; } } return true; }
Example 2
Source File: AnnotatedClass.java From lams with GNU General Public License v2.0 | 5 votes |
@Override public boolean equals(Object o) { if (o == this) return true; if (!ClassUtil.hasClass(o, getClass())) { return false; } return ((AnnotatedClass) o)._class == _class; }
Example 3
Source File: VirtualAnnotatedMember.java From lams with GNU General Public License v2.0 | 5 votes |
@Override public boolean equals(Object o) { if (o == this) return true; if (!ClassUtil.hasClass(o, getClass())) { return false; } VirtualAnnotatedMember other = (VirtualAnnotatedMember) o; return (other._declaringClass == _declaringClass) && other._name.equals(_name); }
Example 4
Source File: AnnotatedParameter.java From lams with GNU General Public License v2.0 | 5 votes |
@Override public boolean equals(Object o) { if (o == this) return true; if (!ClassUtil.hasClass(o, getClass())) { return false; } AnnotatedParameter other = (AnnotatedParameter) o; return other._owner.equals(_owner) && (other._index == _index); }
Example 5
Source File: AnnotatedMethod.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public boolean equals(Object o) { if (o == this) return true; return ClassUtil.hasClass(o, getClass()) && (((AnnotatedMethod) o)._method == _method); }
Example 6
Source File: AnnotatedField.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public boolean equals(Object o) { if (o == this) return true; return ClassUtil.hasClass(o, getClass()) && (((AnnotatedField) o)._field == _field); }
Example 7
Source File: AnnotatedConstructor.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public boolean equals(Object o) { if (o == this) return true; return ClassUtil.hasClass(o, getClass()) && (((AnnotatedConstructor) o)._constructor == _constructor); }