Tabnine Logo
Either.right
Code IndexAdd Tabnine to your IDE (free)

How to use
right
method
in
com.novoda.noplayer.model.Either

Best Java code snippets using com.novoda.noplayer.model.Either.right (Showing top 4 results out of 315)

origin: novoda/no-player

@Override
public void surfaceCreated(SurfaceHolder surfaceHolder) {
  this.eitherSurface = Either.right(surfaceHolder);
  notifyListeners(eitherSurface);
  callbacks.clear();
}
origin: novoda/no-player

@Test
public void givenMediaPlayerIsPreparedWithSurfaceHolder_whenStarting_thenSetsDisplay() {
  SurfaceHolder surfaceHolder = mock(SurfaceHolder.class);
  Either<Surface, SurfaceHolder> eitherSurface = Either.right(surfaceHolder);
  givenMediaPlayerIsPreparedWith(eitherSurface);
  reset(mediaPlayer);
  facade.start(eitherSurface);
  verify(mediaPlayer).setDisplay(surfaceHolder);
}
origin: novoda/no-player

  @Test
  public void givenEitherContainsRight_whenApplyingConsumers_thenRunsRightConsumerWithCorrectValue() {
    Integer value = 42;
    Either<String, Integer> either = Either.right(value);

    either.apply(leftConsumer, rightConsumer);

    verify(rightConsumer).accept(value);
  }
}
origin: novoda/no-player

@Test
public void givenSurfaceRequesterReturnsSurfaceHolder_whenPreparing_thenSetsDisplay() {
  SurfaceHolder surfaceHolder = mock(SurfaceHolder.class);
  Either<Surface, SurfaceHolder> eitherSurface = Either.right(surfaceHolder);
  givenSurfaceRequesterReturns(eitherSurface);
  givenMediaPlayerIsPreparedWith(eitherSurface);
  verify(mediaPlayer).setDisplay(surfaceHolder);
}
com.novoda.noplayer.modelEitherright

Popular methods of Either

  • apply
  • left

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setScale (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • requestLocationUpdates (LocationManager)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Runner (org.openjdk.jmh.runner)
  • CodeWhisperer alternatives
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