Errai 3.0.1-SNAPSHOT

org.jboss.errai.ioc.client
Class QualifierUtil

java.lang.Object
  extended by org.jboss.errai.ioc.client.QualifierUtil

public class QualifierUtil
extends Object

A utility class for testing the equality of qualifiers at runtime.

Author:
Mike Brock

Field Summary
static Annotation ANY_ANNOTATION
           
static Annotation DEFAULT_ANNOTATION
           
static Annotation[] DEFAULT_QUALIFIERS
           
 
Constructor Summary
QualifierUtil()
           
 
Method Summary
static Annotation[] getDefaultQualifiers()
           
static int hashCodeOf(Annotation a1)
           
static int hashValueFor(boolean b)
           
static int hashValueFor(byte b)
           
static int hashValueFor(char c)
           
static int hashValueFor(double d)
           
static int hashValueFor(float f)
           
static int hashValueFor(int i)
           
static int hashValueFor(long l)
           
static int hashValueFor(Object o)
           
static int hashValueFor(short s)
           
static void init()
           
static void initFromFactoryProvider(QualifierEqualityFactoryProvider provider)
           
static boolean isDefaultAnnotations(Annotation[] annotations)
           
static boolean isDefaultAnnotations(Collection<Annotation> annotations)
           
static boolean isEqual(Annotation a1, Annotation a2)
           
static boolean isSameType(Annotation a1, Annotation a2)
           
static boolean matches(Collection<Annotation> allOf, Collection<Annotation> in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ANNOTATION

public static final Annotation DEFAULT_ANNOTATION

ANY_ANNOTATION

public static final Annotation ANY_ANNOTATION

DEFAULT_QUALIFIERS

public static final Annotation[] DEFAULT_QUALIFIERS
Constructor Detail

QualifierUtil

public QualifierUtil()
Method Detail

init

public static void init()

isEqual

public static boolean isEqual(Annotation a1,
                              Annotation a2)

isSameType

public static boolean isSameType(Annotation a1,
                                 Annotation a2)

hashCodeOf

public static int hashCodeOf(Annotation a1)

matches

public static boolean matches(Collection<Annotation> allOf,
                              Collection<Annotation> in)

isDefaultAnnotations

public static boolean isDefaultAnnotations(Annotation[] annotations)

isDefaultAnnotations

public static boolean isDefaultAnnotations(Collection<Annotation> annotations)

initFromFactoryProvider

public static void initFromFactoryProvider(QualifierEqualityFactoryProvider provider)

hashValueFor

public static int hashValueFor(int i)

hashValueFor

public static int hashValueFor(boolean b)

hashValueFor

public static int hashValueFor(long l)

hashValueFor

public static int hashValueFor(float f)

hashValueFor

public static int hashValueFor(double d)

hashValueFor

public static int hashValueFor(char c)

hashValueFor

public static int hashValueFor(byte b)

hashValueFor

public static int hashValueFor(short s)

hashValueFor

public static int hashValueFor(Object o)

getDefaultQualifiers

public static Annotation[] getDefaultQualifiers()

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.