@Test public void testIsCurrent() { CachedCurrentInstallationController controller = new CachedCurrentInstallationController(null, null); ParseInstallation installation = mock(ParseInstallation.class); controller.currentInstallation = installation; assertTrue(controller.isCurrent(installation)); assertFalse(controller.isCurrent(new ParseInstallation())); }
@Override public boolean isCurrent(ParseInstallation installation) { synchronized (mutex) { return currentInstallation == installation; } }
CachedCurrentInstallationController implements ParseCurrentInstallationController { @Override public boolean isCurrent(ParseInstallation installation) { synchronized (mutex) { return currentInstallation == installation; } } }
CachedCurrentInstallationController implements ParseCurrentInstallationController { @Override public boolean isCurrent(ParseInstallation installation) { synchronized (mutex) { return currentInstallation == installation; } } CachedCurrentInstallationController(
            ParseObjectStore<ParseInstallation> store, InstallationId installationId); }
CachedCurrentInstallationController implements ParseCurrentInstallationController { @Override public boolean isCurrent(ParseInstallation installation) { synchronized (mutex) { return currentInstallation == installation; } } CachedCurrentInstallationController(
            ParseObjectStore<ParseInstallation> store, InstallationId installationId); @Override Task<Void> setAsync(final ParseInstallation installation); @Override Task<ParseInstallation> getAsync(); @Override Task<Boolean> existsAsync(); @Override void clearFromMemory(); @Override void clearFromDisk(); @Override boolean isCurrent(ParseInstallation installation); }
CachedCurrentInstallationController implements ParseCurrentInstallationController { @Override public boolean isCurrent(ParseInstallation installation) { synchronized (mutex) { return currentInstallation == installation; } } CachedCurrentInstallationController(
            ParseObjectStore<ParseInstallation> store, InstallationId installationId); @Override Task<Void> setAsync(final ParseInstallation installation); @Override Task<ParseInstallation> getAsync(); @Override Task<Boolean> existsAsync(); @Override void clearFromMemory(); @Override void clearFromDisk(); @Override boolean isCurrent(ParseInstallation installation);  }