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

How to use
Unwrapable
in
com.oath.cyclops.types

Best Java code snippets using com.oath.cyclops.types.Unwrapable (Showing top 4 results out of 315)

origin: aol/cyclops

  default <R> R unwrapNested(Class<?> c,Supplier<? extends R> supplier ){
    R unwrapped = unwrap();
    while(unwrapped instanceof Unwrapable){
      unwrapped = ((Unwrapable) unwrapped).unwrap();
    }
    if(c.isAssignableFrom(unwrapped.getClass())){
      return unwrapped;
    }
    return supplier.get();
  }
}
origin: aol/cyclops

default <R> R unwrapIfInstance(Class<?> c,Supplier<? extends R> supplier ){
  R unwrapped = unwrap();
  if(c.isAssignableFrom(unwrapped.getClass())){
    return unwrapped;
  }
  return supplier.get();
}
default <R> R unwrapNested(Class<?> c,Supplier<? extends R> supplier ){
origin: com.oath.cyclops/cyclops

  default <R> R unwrapNested(Class<?> c,Supplier<? extends R> supplier ){
    R unwrapped = unwrap();
    while(unwrapped instanceof Unwrapable){
      unwrapped = ((Unwrapable) unwrapped).unwrap();
    }
    if(c.isAssignableFrom(unwrapped.getClass())){
      return unwrapped;
    }
    return supplier.get();
  }
}
origin: com.oath.cyclops/cyclops

default <R> R unwrapIfInstance(Class<?> c,Supplier<? extends R> supplier ){
  R unwrapped = unwrap();
  if(c.isAssignableFrom(unwrapped.getClass())){
    return unwrapped;
  }
  return supplier.get();
}
default <R> R unwrapNested(Class<?> c,Supplier<? extends R> supplier ){
com.oath.cyclops.typesUnwrapable

Javadoc

Data type that represents a wrapper type

Most used methods

  • unwrap
    Unwrap a wrapped value

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (Timer)
  • getResourceAsStream (ClassLoader)
  • putExtra (Intent)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Permission (java.security)
    Legacy security code; do not use.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Best plugins for Eclipse
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