Codota Logo
org.hibernate.annotations.common.reflection.java.generics
Code IndexAdd Codota to your IDE (free)

How to use org.hibernate.annotations.common.reflection.java.generics

Best Java code snippets using org.hibernate.annotations.common.reflection.java.generics (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: org.hibernate.common/hibernate-commons-annotations

public Type bind(final Type type) {
  Type result = fineApproximation( type );
  assert TypeUtils.isResolved( result );
  return result;
}
origin: org.hibernate/hibernate-commons-annotations

public TypeEnvironment getEnvironment(Type t, TypeEnvironment context) {
  return CompoundTypeEnvironment.create( getEnvironment(t), context );
}
origin: org.hibernate/hibernate-commons-annotations

  @Override
  public int hashCode() {
    return safeHashCode( getGenericComponentType() );
  }
};
origin: org.hibernate.common/hibernate-commons-annotations

  @Override
  public int hashCode() {
    return safeHashCode( getActualTypeArguments() ) ^ safeHashCode( getRawType() ) ^ safeHashCode(
        getOwnerType()
    );
  }
};
origin: org.infinispan/infinispan-embedded-query

public TypeEnvironment toApproximatingEnvironment(TypeEnvironment context) {
  return CompoundTypeEnvironment.create( new ApproximatingTypeEnvironment(), context );
}
origin: org.hibernate.common/hibernate-commons-annotations

@Override
public Type caseTypeVariable(TypeVariable typeVariable) {
  if ( !containsKey( typeVariable )) {
    return typeVariable;
  }
  return get( typeVariable );
}
origin: org.hibernate/hibernate-commons-annotations

private static Boolean areSimple(Type[] types) {
  for ( Type t : types ) {
    if ( !isSimple( t ) ) {
      return false;
    }
  }
  return true;
}
origin: org.hibernate/hibernate-commons-annotations

private static Boolean areResolved(Type[] types) {
  for ( Type t : types ) {
    if ( !isResolved( t ) ) {
      return false;
    }
  }
  return true;
}
origin: org.hibernate/hibernate-commons-annotations

public static TypeEnvironment create(TypeEnvironment f, TypeEnvironment g) {
  if ( g == IdentityTypeEnvironment.INSTANCE )
    return f;
  if ( f == IdentityTypeEnvironment.INSTANCE )
    return g;
  return new CompoundTypeEnvironment( f, g );
}

origin: org.hibernate/hibernate-commons-annotations

  private Type[] substitute(Type[] types) {
    Type[] substTypes = new Type[types.length];
    for ( int i = 0; i < substTypes.length ; i++ ) {
      substTypes[i] = bind( types[i] );
    }
    return substTypes;
  }
}
origin: org.hibernate/hibernate-commons-annotations

public TypeEnvironment getEnvironment(Type context) {
  if ( context == null ) {
    return IdentityTypeEnvironment.INSTANCE;
  }
  return createEnvironment( context );
}
origin: org.hibernate/hibernate-commons-annotations

private CompoundTypeEnvironment(TypeEnvironment f, TypeEnvironment g) {
  this.f = f;
  this.g = g;
  hashCode = doHashCode();
}
origin: org.hibernate/hibernate-commons-annotations

public SimpleTypeEnvironment(Type[] formalTypeArgs, Type[] actualTypeArgs) {
  for (int i = 0; i < formalTypeArgs.length; i++) {
    put( formalTypeArgs[i], actualTypeArgs[i] );
  }
}
origin: org.infinispan/infinispan-embedded-query

public Type bind(final Type type) {
  Type result = fineApproximation( type );
  assert TypeUtils.isResolved( result );
  return result;
}
origin: org.hibernate.common/hibernate-commons-annotations

public TypeEnvironment getEnvironment(Type t, TypeEnvironment context) {
  return CompoundTypeEnvironment.create( getEnvironment(t), context );
}
origin: org.hibernate.common/hibernate-commons-annotations

  @Override
  public int hashCode() {
    return safeHashCode( getGenericComponentType() );
  }
};
origin: org.hibernate.common/hibernate-commons-annotations

public static TypeEnvironment create(TypeEnvironment f, TypeEnvironment g) {
  if ( g == IdentityTypeEnvironment.INSTANCE )
    return f;
  if ( f == IdentityTypeEnvironment.INSTANCE )
    return g;
  return new CompoundTypeEnvironment( f, g );
}

origin: org.hibernate/hibernate-commons-annotations

public Type bind(final Type type) {
  Type result = fineApproximation( type );
  assert TypeUtils.isResolved( result );
  return result;
}
origin: hibernate/hibernate-commons-annotations

public Type bind(final Type type) {
  Type result = fineApproximation( type );
  assert TypeUtils.isResolved( result );
  return result;
}
origin: org.hibernate/com.springsource.org.hibernate.annotations.common

public Type bind(final Type type) {
  Type result = fineApproximation( type );
  assert TypeUtils.isResolved( result );
  return result;
}
org.hibernate.annotations.common.reflection.java.generics

Most used classes

  • TypeEnvironment
    A typing context that knows how to "resolve" the generic parameters of aType. For example: > c
  • TypeEnvironmentFactory
    Returns the type context for a given Class or ParameterizedType. Does not support bindings involving
  • TypeUtils
  • ApproximatingTypeEnvironment$2
  • ApproximatingTypeEnvironment
    A TypeEnvironment that approximates the unresolved components of a generic simple type or collection
  • SimpleTypeEnvironment$1,
  • SimpleTypeEnvironment,
  • TypeEnvironmentFactory$1,
  • TypeFactory$1,
  • TypeFactory$2,
  • TypeFactory,
  • TypeSwitch,
  • ApproximatingTypeEnvironment$1,
  • TypeUtils$1,
  • TypeUtils$2,
  • TypeUtils$3,
  • TypeUtils$4
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now