@Override @SuppressFBWarnings(value = "EQ_CHECK_FOR_OPERAND_NOT_COMPATIBLE_WITH_THIS", justification = "Type check is performed by erasure implementation") public boolean equals(Object other) { return this == other || asErasure().equals(other); }
@Override public int hashCode() { return asErasure().hashCode(); }
@Override public String toString() { return asErasure().toString(); }
/** * {@inheritDoc} */ public Generic getSuperClass() { TypeDescription erasure = asErasure(); Generic superClass = erasure.getSuperClass(); if (TypeDescription.AbstractBase.RAW_TYPES) { return superClass; } return superClass == null ? Generic.UNDEFINED : new Generic.LazyProjection.WithResolvedErasure(superClass, new Visitor.ForRawType(erasure), Empty.INSTANCE); }
/** * {@inheritDoc} */ public boolean represents(java.lang.reflect.Type type) { return asErasure().represents(type); }
/** * {@inheritDoc} */ public boolean isArray() { return asErasure().isArray(); }
/** * {@inheritDoc} */ public MethodList<MethodDescription.InGenericShape> getDeclaredMethods() { TypeDescription erasure = asErasure(); return new MethodList.TypeSubstituting(this, erasure.getDeclaredMethods(), TypeDescription.AbstractBase.RAW_TYPES ? Visitor.NoOp.INSTANCE : new Visitor.ForRawType(erasure)); }
/** * {@inheritDoc} */ public boolean isPrimitive() { return asErasure().isPrimitive(); }
/** * {@inheritDoc} */ public String getActualName() { return asErasure().getActualName(); }
/** * {@inheritDoc} */ public FieldList<FieldDescription.InGenericShape> getDeclaredFields() { TypeDescription erasure = asErasure(); return new FieldList.TypeSubstituting(this, erasure.getDeclaredFields(), TypeDescription.AbstractBase.RAW_TYPES ? Visitor.NoOp.INSTANCE : new Visitor.ForRawType(erasure)); }
/** * {@inheritDoc} */ public StackSize getStackSize() { return asErasure().getStackSize(); }
/** * {@inheritDoc} */ public String getTypeName() { return asErasure().getTypeName(); }
/** * {@inheritDoc} */ public TypeList.Generic getInterfaces() { TypeDescription erasure = asErasure(); if (TypeDescription.AbstractBase.RAW_TYPES) { return erasure.getInterfaces(); } return new TypeList.Generic.ForDetachedTypes.WithResolvedErasure(erasure.getInterfaces(), new Visitor.ForRawType(erasure)); }