Package net.bytebuddy

Class TypeCache.SimpleKey

  • Enclosing class:
    TypeCache<T>

    public static class TypeCache.SimpleKey
    extends java.lang.Object
    A simple key based on a collection of types where no type is strongly referenced.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Set<java.lang.String> types
      The referenced types.
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleKey​(java.lang.Class<?> type, java.lang.Class<?>... additionalType)
      Creates a simple cache key..
      SimpleKey​(java.lang.Class<?> type, java.util.Collection<? extends java.lang.Class<?>> additionalTypes)
      Creates a simple cache key..
      SimpleKey​(java.util.Collection<? extends java.lang.Class<?>> types)
      Creates a simple cache key..
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • types

        private final java.util.Set<java.lang.String> types
        The referenced types.
    • Constructor Detail

      • SimpleKey

        public SimpleKey​(java.lang.Class<?> type,
                         java.lang.Class<?>... additionalType)
        Creates a simple cache key..
        Parameters:
        type - The first type to be represented by this key.
        additionalType - Any additional types to be represented by this key.
      • SimpleKey

        public SimpleKey​(java.lang.Class<?> type,
                         java.util.Collection<? extends java.lang.Class<?>> additionalTypes)
        Creates a simple cache key..
        Parameters:
        type - The first type to be represented by this key.
        additionalTypes - Any additional types to be represented by this key.
      • SimpleKey

        public SimpleKey​(java.util.Collection<? extends java.lang.Class<?>> types)
        Creates a simple cache key..
        Parameters:
        types - Any types to be represented by this key.
    • Method Detail

      • hashCode

        @Enhance("hashCode")
        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object