@Test(expected = IllegalArgumentException.class) public void forTransientFailureInvalid() { ConnectivityStateInfo.forTransientFailure(Status.OK); }
public static ConnectivityStateInfo forTransientFailure(Status error) { Preconditions.checkArgument(!error.isOk(), "The error status must not be OK"); return new ConnectivityStateInfo(TRANSIENT_FAILURE, error); }
ConnectivityStateInfo { public static ConnectivityStateInfo forTransientFailure(Status error) { Preconditions.checkArgument(!error.isOk(), "The error status must not be OK"); return new ConnectivityStateInfo(TRANSIENT_FAILURE, error); } }
ConnectivityStateInfo { public static ConnectivityStateInfo forTransientFailure(Status error) { Preconditions.checkArgument(!error.isOk(), "The error status must not be OK"); return new ConnectivityStateInfo(TRANSIENT_FAILURE, error); } private  ConnectivityStateInfo(ConnectivityState state, Status status); }
ConnectivityStateInfo { public static ConnectivityStateInfo forTransientFailure(Status error) { Preconditions.checkArgument(!error.isOk(), "The error status must not be OK"); return new ConnectivityStateInfo(TRANSIENT_FAILURE, error); } private  ConnectivityStateInfo(ConnectivityState state, Status status); static ConnectivityStateInfo forNonError(ConnectivityState state); static ConnectivityStateInfo forTransientFailure(Status error); ConnectivityState getState(); Status getStatus(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString(); }
ConnectivityStateInfo { public static ConnectivityStateInfo forTransientFailure(Status error) { Preconditions.checkArgument(!error.isOk(), "The error status must not be OK"); return new ConnectivityStateInfo(TRANSIENT_FAILURE, error); } private  ConnectivityStateInfo(ConnectivityState state, Status status); static ConnectivityStateInfo forNonError(ConnectivityState state); static ConnectivityStateInfo forTransientFailure(Status error); ConnectivityState getState(); Status getStatus(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }