类 WeakCacheKey<T>

  • 类型参数:
    T - type of the reference

    public class WeakCacheKey<T>
    extends java.lang.ref.WeakReference<T>
    Allows to check for object equality, yet the class does not keep strong reference to the target. equals(Object) returns true if and only if the reference is not yet expired and target objects are equal in terms of equals(Object).

    This an internal class, thus it might disappear in future cglib releases.

    • 构造器概要

      构造器 
      构造器 说明
      WeakCacheKey​(T referent)  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      java.lang.String toString()  
      • 从类继承的方法 java.lang.ref.Reference

        clear, clone, enqueue, get, isEnqueued, reachabilityFence
      • 从类继承的方法 java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • 构造器详细资料

      • WeakCacheKey

        public WeakCacheKey​(T referent)
    • 方法详细资料

      • equals

        public boolean equals​(java.lang.Object obj)
        覆盖:
        equals 在类中 java.lang.Object
      • hashCode

        public int hashCode()
        覆盖:
        hashCode 在类中 java.lang.Object
      • toString

        public java.lang.String toString()
        覆盖:
        toString 在类中 java.lang.Object