Codota Logo
Specifications
Code IndexAdd Codota to your IDE (free)

How to use
Specifications
in
org.qi4j.functional

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: org.qi4j.core/org.qi4j.core.api

@Override
public boolean satisfiedBy( Composite item )
{
  return Specifications.not( operand ).satisfiedBy( item );
}
origin: org.qi4j.core/org.qi4j.core.api

@Override
public boolean satisfiedBy( Composite item )
{
  return Specifications.and( operands ).satisfiedBy( item );
}
origin: org.qi4j.core/org.qi4j.core.api

@Override
public boolean satisfiedBy( Composite item )
{
  return Specifications.or( operands ).satisfiedBy( item );
}
origin: org.qi4j.library/org.qi4j.library.rest-server

Specification<Class<?>> isNotAnAbstract = not( hasModifier( Modifier.ABSTRACT ) );
Iterable<Class<?>> candidates = filter( and( isNotAnAbstract, responseWriterClass ), writers );
for( Class<?> responseWriter : candidates )
origin: org.qi4j.core/org.qi4j.core.api

@Override
public T importService( final ImportedServiceDescriptor serviceDescriptor )
  throws ServiceImporterException
{
  T instance = null;
  Iterable<MetaInfoHolder> holders = Iterables.iterable( serviceDescriptor, module, layer, application );
  for( final MetaInfoHolder metaInfoHolder : holders )
  {
    Function<Class<?>, T> metaFinder = new Function<Class<?>, T>()
    {
      @Override
      @SuppressWarnings( "unchecked" )
      public T map( Class<?> type )
      {
        return (T) metaInfoHolder.metaInfo( type );
      }
    };
    instance = first( filter( notNull(), map( metaFinder, serviceDescriptor.types() ) ) );
    if( instance != null )
    {
      break;
    }
  }
  return instance;
}
origin: org.qi4j.library/org.qi4j.library.sql

public static CircuitBreaker newDataSourceCircuitBreaker( int threshold, long timeout )
{
  @SuppressWarnings( "unchecked" )
  Specification<Throwable> in = in( ConnectException.class );
  return new CircuitBreaker( threshold, timeout, not( rootCause( in ) ) );
}
org.qi4j.functionalSpecifications

Most used methods

  • not
  • and
  • notNull
  • or

Popular in Java

  • Reactive rest calls using spring rest template
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
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