public boolean equals(Object obj) { if (super.equals(obj)) { TypeTokenNameAndParameterTypes that = TypeTokenNameAndParameterTypes.class.cast(obj); return name.equals(that.name); } return false; }
public int hashCode() { return Objects.hashCode(super.hashCode(), name); }
/** * returns an {@link Invokable} object that reflects a constructor present in the {@link TypeToken} type. * * @param ownerType * corresponds to {@link Invokable#getOwnerType()} * @param parameterTypes * corresponds to {@link Constructor#getParameterTypes()} * * @throws IllegalArgumentException * if the constructor doesn't exist or a security exception occurred */ @SuppressWarnings("unchecked") public static <T> Invokable<T, T> constructor(Class<T> ownerType, Class<?>... parameterTypes) { return (Invokable<T, T>) get(constructorForParams, new TypeTokenAndParameterTypes(typeToken(ownerType), parameterTypes)); }
/** * returns an {@link Invokable} object that reflects a constructor present in the {@link TypeToken} type. * * @param ownerType * corresponds to {@link Invokable#getOwnerType()} * @param parameterTypes * corresponds to {@link Constructor#getParameterTypes()} * * @throws IllegalArgumentException * if the constructor doesn't exist or a security exception occurred */ @SuppressWarnings("unchecked") public static <T> Invokable<T, T> constructor(Class<T> ownerType, Class<?>... parameterTypes) { return (Invokable<T, T>) get(constructorForParams, new TypeTokenAndParameterTypes(typeToken(ownerType), parameterTypes)); }
/** * returns an {@link Invokable} object that reflects a constructor present in the {@link TypeToken} type. * * @param ownerType * corresponds to {@link Invokable#getOwnerType()} * @param parameterTypes * corresponds to {@link Constructor#getParameterTypes()} * * @throws IllegalArgumentException * if the constructor doesn't exist or a security exception occurred */ @SuppressWarnings("unchecked") public static <T> Invokable<T, T> constructor(Class<T> ownerType, Class<?>... parameterTypes) { return (Invokable<T, T>) get(constructorForParams, new TypeTokenAndParameterTypes(typeToken(ownerType), parameterTypes)); }
/** * returns an {@link Invokable} object that reflects a constructor present in the {@link TypeToken} type. * * @param ownerType * corresponds to {@link Invokable#getOwnerType()} * @param parameterTypes * corresponds to {@link Constructor#getParameterTypes()} * * @throws IllegalArgumentException * if the constructor doesn't exist or a security exception occurred */ @SuppressWarnings("unchecked") public static <T> Invokable<T, T> constructor(Class<T> ownerType, Class<?>... parameterTypes) { return (Invokable<T, T>) get(constructorForParams, new TypeTokenAndParameterTypes(typeToken(ownerType), parameterTypes)); }
/** * returns an {@link Invokable} object that reflects a constructor present in the {@link TypeToken} type. * * @param ownerType * corresponds to {@link Invokable#getOwnerType()} * @param parameterTypes * corresponds to {@link Constructor#getParameterTypes()} * * @throws IllegalArgumentException * if the constructor doesn't exist or a security exception occurred */ @SuppressWarnings("unchecked") public static <T> Invokable<T, T> constructor(Class<T> ownerType, Class<?>... parameterTypes) { return (Invokable<T, T>) get(constructorForParams, new TypeTokenAndParameterTypes(typeToken(ownerType), parameterTypes)); }
/** * returns an {@link Invokable} object that reflects a constructor present in the {@link TypeToken} type. * * @param ownerType * corresponds to {@link Invokable#getOwnerType()} * @param parameterTypes * corresponds to {@link Constructor#getParameterTypes()} * * @throws IllegalArgumentException * if the constructor doesn't exist or a security exception occurred */ @SuppressWarnings("unchecked") public static <T> Invokable<T, T> constructor(Class<T> ownerType, Class<?>... parameterTypes) { return (Invokable<T, T>) get(constructorForParams, new TypeTokenAndParameterTypes(typeToken(ownerType), parameterTypes)); }
public int hashCode() { return Objects.hashCode(super.hashCode(), name); }
public int hashCode() { return Objects.hashCode(super.hashCode(), name); }
public int hashCode() { return Objects.hashCode(super.hashCode(), name); }
public int hashCode() { return Objects.hashCode(super.hashCode(), name); }
public int hashCode() { return Objects.hashCode(super.hashCode(), name); }
public boolean equals(Object obj) { if (super.equals(obj)) { TypeTokenNameAndParameterTypes that = TypeTokenNameAndParameterTypes.class.cast(obj); return name.equals(that.name); } return false; }
public boolean equals(Object obj) { if (super.equals(obj)) { TypeTokenNameAndParameterTypes that = TypeTokenNameAndParameterTypes.class.cast(obj); return name.equals(that.name); } return false; }
public boolean equals(Object obj) { if (super.equals(obj)) { TypeTokenNameAndParameterTypes that = TypeTokenNameAndParameterTypes.class.cast(obj); return name.equals(that.name); } return false; }
public boolean equals(Object obj) { if (super.equals(obj)) { TypeTokenNameAndParameterTypes that = TypeTokenNameAndParameterTypes.class.cast(obj); return name.equals(that.name); } return false; }
public boolean equals(Object obj) { if (super.equals(obj)) { TypeTokenNameAndParameterTypes that = TypeTokenNameAndParameterTypes.class.cast(obj); return name.equals(that.name); } return false; }