@Test public void isPmDisabledShouldReturnFalseWithoutConstraints() { DefaultTimepointLimiter limiter = new DefaultTimepointLimiter(); Assert.assertFalse(limiter.isPmDisabled()); }
@SuppressWarnings("SimplifiableIfStatement") @Override public boolean isPmDisabled() { Timepoint midday = new Timepoint(12); if (mMaxTime != null && mMaxTime.compareTo(midday) < 0) return true; if (!exclusiveSelectableTimes.isEmpty()) return exclusiveSelectableTimes.last().compareTo(midday) < 0; return false; }
DefaultTimepointLimiter implements TimepointLimiter { @SuppressWarnings("SimplifiableIfStatement") @Override public boolean isPmDisabled() { Timepoint midday = new Timepoint(12); if (mMaxTime != null && mMaxTime.compareTo(midday) < 0) return true; if (!exclusiveSelectableTimes.isEmpty()) return exclusiveSelectableTimes.last().compareTo(midday) < 0; return false; } }
DefaultTimepointLimiter implements TimepointLimiter { @SuppressWarnings("SimplifiableIfStatement") @Override public boolean isPmDisabled() { Timepoint midday = new Timepoint(12); if (mMaxTime != null && mMaxTime.compareTo(midday) < 0) return true; if (!exclusiveSelectableTimes.isEmpty()) return exclusiveSelectableTimes.last().compareTo(midday) < 0; return false; } DefaultTimepointLimiter(); @SuppressWarnings("WeakerAccess")  DefaultTimepointLimiter(Parcel in); }
DefaultTimepointLimiter implements TimepointLimiter { @SuppressWarnings("SimplifiableIfStatement") @Override public boolean isPmDisabled() { Timepoint midday = new Timepoint(12); if (mMaxTime != null && mMaxTime.compareTo(midday) < 0) return true; if (!exclusiveSelectableTimes.isEmpty()) return exclusiveSelectableTimes.last().compareTo(midday) < 0; return false; } DefaultTimepointLimiter(); @SuppressWarnings("WeakerAccess")  DefaultTimepointLimiter(Parcel in); @Override void writeToParcel(Parcel out, int flags); @Override int describeContents(); @Override boolean isOutOfRange(@Nullable Timepoint current, int index, @NonNull Timepoint.TYPE resolution); boolean isOutOfRange(@NonNull Timepoint current); @SuppressWarnings("SimplifiableIfStatement") @Override boolean isAmDisabled(); @SuppressWarnings("SimplifiableIfStatement") @Override boolean isPmDisabled(); @Override @NonNull Timepoint roundToNearest(@NonNull Timepoint time,@Nullable Timepoint.TYPE type, @NonNull Timepoint.TYPE resolution); }
DefaultTimepointLimiter implements TimepointLimiter { @SuppressWarnings("SimplifiableIfStatement") @Override public boolean isPmDisabled() { Timepoint midday = new Timepoint(12); if (mMaxTime != null && mMaxTime.compareTo(midday) < 0) return true; if (!exclusiveSelectableTimes.isEmpty()) return exclusiveSelectableTimes.last().compareTo(midday) < 0; return false; } DefaultTimepointLimiter(); @SuppressWarnings("WeakerAccess")  DefaultTimepointLimiter(Parcel in); @Override void writeToParcel(Parcel out, int flags); @Override int describeContents(); @Override boolean isOutOfRange(@Nullable Timepoint current, int index, @NonNull Timepoint.TYPE resolution); boolean isOutOfRange(@NonNull Timepoint current); @SuppressWarnings("SimplifiableIfStatement") @Override boolean isAmDisabled(); @SuppressWarnings("SimplifiableIfStatement") @Override boolean isPmDisabled(); @Override @NonNull Timepoint roundToNearest(@NonNull Timepoint time,@Nullable Timepoint.TYPE type, @NonNull Timepoint.TYPE resolution); @SuppressWarnings("WeakerAccess")
    static final Parcelable.Creator<DefaultTimepointLimiter> CREATOR; }