@Test public void getState() { assertEquals(State.SECONDARY, mSelector.getState()); mSelector.setState(State.PRIMARY); assertEquals(State.PRIMARY, mSelector.getState()); mSelector.setState(State.SECONDARY); assertEquals(State.SECONDARY, mSelector.getState()); }
@Override public final State getState() { try (LockResource lr = new LockResource(mStateLock)) { return mState; } }
AbstractPrimarySelector implements PrimarySelector { @Override public final State getState() { try (LockResource lr = new LockResource(mStateLock)) { return mState; } } }
AbstractPrimarySelector implements PrimarySelector { @Override public final State getState() { try (LockResource lr = new LockResource(mStateLock)) { return mState; } }  }
AbstractPrimarySelector implements PrimarySelector { @Override public final State getState() { try (LockResource lr = new LockResource(mStateLock)) { return mState; } }  @Override final State getState(); @Override final Scoped onStateChange(Consumer<State> listener); @Override final void waitForState(State state); }
AbstractPrimarySelector implements PrimarySelector { @Override public final State getState() { try (LockResource lr = new LockResource(mStateLock)) { return mState; } }  @Override final State getState(); @Override final Scoped onStateChange(Consumer<State> listener); @Override final void waitForState(State state);  }