Package net.bytebuddy
Class TypeCache.SimpleKey
- java.lang.Object
-
- net.bytebuddy.TypeCache.SimpleKey
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<java.lang.String>typesThe 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 booleanequals(java.lang.Object other)inthashCode()
-
-
-
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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(@MaybeNull java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
-