@Test public void testSameAs() { final Session session1 = new Session(Source.VIEW, TEST_URL); final Session session2 = new Session(Source.VIEW, TEST_URL); assertFalse(session1.isSameAs(session2)); assertFalse(session2.isSameAs(session1)); assertTrue(session1.isSameAs(session1)); assertTrue(session2.isSameAs(session2)); }
public boolean isSameAs(@NonNull Session session) { return uuid.equals(session.getUUID()); }
Session { public boolean isSameAs(@NonNull Session session) { return uuid.equals(session.getUUID()); } }
Session { public boolean isSameAs(@NonNull Session session) { return uuid.equals(session.getUUID()); } Session(Source source, String url);   Session(String url); }
Session { public boolean isSameAs(@NonNull Session session) { return uuid.equals(session.getUUID()); } Session(Source source, String url);   Session(String url); Source getSource(); String getUUID(); NonNullLiveData<String> getUrl(); NonNullLiveData<Integer> getProgress(); NonNullLiveData<Boolean> getSecure(); NonNullLiveData<Boolean> getLoading(); void saveWebViewState(Bundle bundle); Bundle getWebViewState(); boolean hasWebViewState(); boolean isRecorded(); void markAsRecorded(); boolean isSameAs(@NonNull Session session); boolean isBlockingEnabled(); void setBlockingEnabled(boolean blockingEnabled); }
Session { public boolean isSameAs(@NonNull Session session) { return uuid.equals(session.getUUID()); } Session(Source source, String url);   Session(String url); Source getSource(); String getUUID(); NonNullLiveData<String> getUrl(); NonNullLiveData<Integer> getProgress(); NonNullLiveData<Boolean> getSecure(); NonNullLiveData<Boolean> getLoading(); void saveWebViewState(Bundle bundle); Bundle getWebViewState(); boolean hasWebViewState(); boolean isRecorded(); void markAsRecorded(); boolean isSameAs(@NonNull Session session); boolean isBlockingEnabled(); void setBlockingEnabled(boolean blockingEnabled);  }