/** * EntityProxies are equal if they are from the same RequestContext and their * stableIds are equal. */ public static boolean equals(AutoBean<? extends EntityProxy> bean, Object o) { if (!(o instanceof EntityProxy)) { return false; } AutoBean<EntityProxy> other = AutoBeanUtils.getAutoBean((EntityProxy) o); if (other == null) { // Unexpected, could be an user-provided implementation? return false; } // Object comparison intentional. True if both null or both the same return stableId(bean).equals(stableId(other)) && nonDiffingRequestContext(bean) == nonDiffingRequestContext(other); }
/** * Hashcode is always that of the stableId, since it's stable across time. */ public static int hashCode(AutoBean<? extends EntityProxy> bean) { return stableId(bean).hashCode(); }
/** * Hashcode is always that of the stableId, since it's stable across time. */ public static int hashCode(AutoBean<? extends EntityProxy> bean) { return stableId(bean).hashCode(); }
/** * EntityProxies are equal if they are from the same RequestContext and their * stableIds are equal. */ public static boolean equals(AutoBean<? extends EntityProxy> bean, Object o) { if (!(o instanceof EntityProxy)) { return false; } AutoBean<EntityProxy> other = AutoBeanUtils.getAutoBean((EntityProxy) o); if (other == null) { // Unexpected, could be an user-provided implementation? return false; } // Object comparison intentional. True if both null or both the same return stableId(bean).equals(stableId(other)) && nonDiffingRequestContext(bean) == nonDiffingRequestContext(other); }
/** * Hashcode is always that of the stableId, since it's stable across time. */ public static int hashCode(AutoBean<? extends EntityProxy> bean) { return stableId(bean).hashCode(); }
/** * EntityProxies are equal if they are from the same RequestContext and their * stableIds are equal. */ public static boolean equals(AutoBean<? extends EntityProxy> bean, Object o) { if (!(o instanceof EntityProxy)) { return false; } AutoBean<EntityProxy> other = AutoBeanUtils.getAutoBean((EntityProxy) o); if (other == null) { // Unexpected, could be an user-provided implementation? return false; } // Object comparison intentional. True if both null or both the same return stableId(bean).equals(stableId(other)) && nonDiffingRequestContext(bean) == nonDiffingRequestContext(other); }
/** * Hashcode is always that of the stableId, since it's stable across time. */ public static int hashCode(AutoBean<? extends EntityProxy> bean) { return stableId(bean).hashCode(); }
/** * EntityProxies are equal if they are from the same RequestContext and their * stableIds are equal. */ public static boolean equals(AutoBean<? extends EntityProxy> bean, Object o) { if (!(o instanceof EntityProxy)) { return false; } AutoBean<EntityProxy> other = AutoBeanUtils.getAutoBean((EntityProxy) o); if (other == null) { // Unexpected, could be an user-provided implementation? return false; } // Object comparison intentional. True if both null or both the same return stableId(bean).equals(stableId(other)) && nonDiffingRequestContext(bean) == nonDiffingRequestContext(other); }