Tabnine Logo
Function
Code IndexAdd Tabnine to your IDE (free)

How to use
Function
in
org.qi4j.functional

Best Java code snippets using org.qi4j.functional.Function (Showing top 20 results out of 315)

origin: org.qi4j.library/org.qi4j.library.rest-server

public ValueCompositeTemplateModel( ValueComposite composite, ObjectWrapper wrapper )
{
  this.composite = composite;
  this.wrapper = wrapper;
  descriptor = (ValueDescriptor) Qi4j.FUNCTION_DESCRIPTOR_FOR.map( composite );
}
origin: org.qi4j.core/org.qi4j.core.api

public static Iterable<Type> typesOf( Type type )
{
  return TYPES_OF.map( type );
}
origin: org.qi4j.core/org.qi4j.core.api

public static Iterable<Type> interfacesOf( Type type )
{
  return INTERFACES_OF.map( type );
}
origin: org.qi4j.core/org.qi4j.core.api

public static Type wrapperClass( Type type )
{
  return WRAPPER_CLASS.map( type );
}
origin: org.qi4j.core/org.qi4j.core.api

public static Type typeOf( AccessibleObject from )
{
  return TYPE_OF.map( from );
}
origin: org.qi4j.core/org.qi4j.core.api

public static Iterable<Class<?>> classHierarchy( Class<?> type )
{
  return CLASS_HIERARCHY.map( type );
}
origin: org.qi4j.core/org.qi4j.core.api

  @Override
  public boolean satisfiedBy( Type item )
  {
    return Classes.RAW_CLASS.map( item ).getDeclaredMethods().length > 0;
  }
};
origin: org.qi4j.core/org.qi4j.core.api

@SuppressWarnings( "UnusedDeclaration" )
public static <AnnotationType extends Annotation>
  AnnotationType findAnnotationOfTypeOrAnyOfSuperTypes( Class<?> type, Class<AnnotationType> annotationClass )
{
  AnnotationType result = null;
  for( Type clazz : Classes.TYPES_OF.map( type ) )
  {
    result = Classes.RAW_CLASS.map( clazz ).getAnnotation( annotationClass );
    if( result != null )
    {
      break;
    }
  }
  return result;
}
origin: org.qi4j.core/org.qi4j.core.api

public static boolean isMap( Type type )
{
  Class<?> cl = Classes.RAW_CLASS.map( type );
  return Map.class.isAssignableFrom( cl );
}
origin: org.qi4j.core/org.qi4j.core.api

  @Override
  public String map( Type type )
  {
    return RAW_CLASS.map( type ).getName();
  }
};
origin: org.qi4j.core/org.qi4j.core.api

public static boolean isValueComposite( Type type )
{
  return ValueComposite.class.isAssignableFrom( Classes.RAW_CLASS.map( type ) );
}
origin: org.qi4j.core/org.qi4j.core.api

public static boolean isCollection( Type type )
{
  Class<?> cl = Classes.RAW_CLASS.map( type );
  return cl.equals( Collection.class ) || cl.equals( List.class ) || cl.equals( Set.class );
}
origin: org.qi4j.core/org.qi4j.core.api

public static <T extends Annotation> T annotationOn( Type type, Class<T> annotationType )
{
  return annotationType.cast( Classes.RAW_CLASS.map( type ).getAnnotation( annotationType ) );
}
origin: org.qi4j.core/org.qi4j.core.api

public ConstraintViolationException( String instanceToString,
                   Iterable<Class<?>> instanceTypes,
                   Member method,
                   Collection<ConstraintViolation> violations
)
{
  this.instanceToString = instanceToString;
  this.instanceTypes = instanceTypes;
  mixinTypeName = method.getDeclaringClass().getName();
  methodName = method.getName();
  this.constraintViolations = violations;
}
origin: org.qi4j.core/org.qi4j.core.api

  @Override
  public Iterable<Method> map( Type type )
  {
    return iterable( Classes.RAW_CLASS.map( type ).getDeclaredMethods() );
  }
} );
origin: org.qi4j.core/org.qi4j.core.api

  @Override
  public Iterable<Annotation> map( Type type )
  {
    return Iterables.iterable( Classes.RAW_CLASS.map( type ).getAnnotations() );
  }
} );
origin: org.qi4j.core/org.qi4j.core.api

public static TypeName nameOf( Type type )
{
  return nameOf( Classes.RAW_CLASS.map( type ) );
}
origin: org.qi4j.core/org.qi4j.core.api

public void set( Object metaInfo )
{
  if( metaInfo instanceof Annotation )
  {
    Annotation annotation = (Annotation) metaInfo;
    metaInfoMap.put( annotation.annotationType(), metaInfo );
  }
  else
  {
    Class<?> metaInfoclass = metaInfo.getClass();
    Iterable<Type> types = typesOf( metaInfoclass );
    for( Type type : types )
    {
      metaInfoMap.put( Classes.RAW_CLASS.map( type ), metaInfo );
    }
  }
}
origin: org.qi4j.library/org.qi4j.library.rest-server

@Override
public TemplateCollectionModel values()
  throws TemplateModelException
{
  return (TemplateCollectionModel) wrapper.wrap( Iterables.map( new Function<Property<?>, Object>()
  {
    @Override
    public Object map( Property<?> objectProperty )
    {
      try
      {
        return wrapper.wrap( objectProperty.get() );
      }
      catch( TemplateModelException e )
      {
        throw new IllegalStateException( e );
      }
    }
  }, Qi4j.FUNCTION_COMPOSITE_INSTANCE_OF.map( composite ).state().properties() ).iterator() );
}
origin: org.qi4j.library/org.qi4j.library.logging

  private String getCompositeName( Composite composite )
  {
    return first( Qi4j.FUNCTION_DESCRIPTOR_FOR.map( composite ).types()).getName();
  }
}
org.qi4j.functionalFunction

Most used methods

  • map

Popular in Java

  • Reactive rest calls using spring rest template
  • requestLocationUpdates (LocationManager)
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • JCheckBox (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now