Class InstantBinaryOperations
java.lang.Object
trade.invision.indicators.indicators.operation.binary.InstantBinaryOperations
InstantBinaryOperations provides convenience static methods for creating Instant
BinaryOperation Indicators.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates anInstantIndicatorthat invokes theInstant.isBefore(Instant)binary operation on the given operands.Creates aBooleanIndicatorthat performs theInstant.isAfter(Instant)binary comparison using the given inputs.isAfterOrEqual(Indicator<Instant> left, Indicator<Instant> right) Creates aBooleanIndicatorthat performs the inverseInstant.isBefore(Instant)binary comparison using the given inputs.Creates aBooleanIndicatorthat performs theInstant.isBefore(Instant)binary comparison using the given inputs.isBeforeOrEqual(Indicator<Instant> left, Indicator<Instant> right) Creates aBooleanIndicatorthat performs the inverseInstant.isAfter(Instant)binary comparison using the given inputs.isDateAfter(Indicator<Instant> left, Indicator<Instant> right) Creates aBooleanIndicatorthat performs theLocalDate.isAfter(ChronoLocalDate)binary comparison on the date part using the given inputs.isDateAfterOrEqual(Indicator<Instant> left, Indicator<Instant> right) Creates aBooleanIndicatorthat performs the inverseLocalDate.isBefore(ChronoLocalDate)binary comparison on the date part using the given inputs.isDateBefore(Indicator<Instant> left, Indicator<Instant> right) Creates aBooleanIndicatorthat performs theLocalDate.isBefore(ChronoLocalDate)binary comparison on the date part using the given inputs.isDateBeforeOrEqual(Indicator<Instant> left, Indicator<Instant> right) Creates aBooleanIndicatorthat performs the inverseLocalDate.isAfter(ChronoLocalDate)binary comparison on the date part using the given inputs.isDateEqual(Indicator<Instant> left, Indicator<Instant> right) Creates aBooleanIndicatorthat performs theLocalDate.equals(Object)binary comparison on the date part using the given inputs.Creates aBooleanIndicatorthat performs theInstant.equals(Object)binary comparison using the given inputs.isTimeAfter(Indicator<Instant> left, Indicator<Instant> right) Creates aBooleanIndicatorthat performs theLocalTime.isAfter(LocalTime)binary comparison on the time part using the given inputs.isTimeAfterOrEqual(Indicator<Instant> left, Indicator<Instant> right) Creates aBooleanIndicatorthat performs the inverseLocalTime.isBefore(LocalTime)binary comparison on the time part using the given inputs.isTimeBefore(Indicator<Instant> left, Indicator<Instant> right) Creates aBooleanIndicatorthat performs theLocalTime.isBefore(LocalTime)binary comparison on the time part using the given inputs.isTimeBeforeOrEqual(Indicator<Instant> left, Indicator<Instant> right) Creates aBooleanIndicatorthat performs the inverseLocalTime.isAfter(LocalTime)binary comparison on the time part using the given inputs.isTimeEqual(Indicator<Instant> left, Indicator<Instant> right) Creates aBooleanIndicatorthat performs theLocalTime.equals(Object)binary comparison on the time part using the given inputs.Creates anInstantIndicatorthat invokes theInstant.isAfter(Instant)binary operation on the given operands.
-
Constructor Details
-
InstantBinaryOperations
public InstantBinaryOperations()
-
-
Method Details
-
earliest
Creates anInstantIndicatorthat invokes theInstant.isBefore(Instant)binary operation on the given operands. -
latest
Creates anInstantIndicatorthat invokes theInstant.isAfter(Instant)binary operation on the given operands. -
withTime
-
withTime
public static Indicator<Instant> withTime(Indicator<Instant> left, Indicator<Instant> right, ZoneId zoneId) -
withDate
-
withDate
public static Indicator<Instant> withDate(Indicator<Instant> left, Indicator<Instant> right, ZoneId zoneId) -
isEqual
Creates aBooleanIndicatorthat performs theInstant.equals(Object)binary comparison using the given inputs. -
isBefore
Creates aBooleanIndicatorthat performs theInstant.isBefore(Instant)binary comparison using the given inputs. -
isBeforeOrEqual
Creates aBooleanIndicatorthat performs the inverseInstant.isAfter(Instant)binary comparison using the given inputs. -
isAfter
Creates aBooleanIndicatorthat performs theInstant.isAfter(Instant)binary comparison using the given inputs. -
isAfterOrEqual
Creates aBooleanIndicatorthat performs the inverseInstant.isBefore(Instant)binary comparison using the given inputs. -
isTimeEqual
-
isTimeEqual
public static Indicator<Boolean> isTimeEqual(Indicator<Instant> left, Indicator<Instant> right, ZoneId zoneId) Creates aBooleanIndicatorthat performs theLocalTime.equals(Object)binary comparison on the time part using the given inputs. -
isTimeBefore
-
isTimeBefore
public static Indicator<Boolean> isTimeBefore(Indicator<Instant> left, Indicator<Instant> right, ZoneId zoneId) Creates aBooleanIndicatorthat performs theLocalTime.isBefore(LocalTime)binary comparison on the time part using the given inputs. -
isTimeBeforeOrEqual
-
isTimeBeforeOrEqual
public static Indicator<Boolean> isTimeBeforeOrEqual(Indicator<Instant> left, Indicator<Instant> right, ZoneId zoneId) Creates aBooleanIndicatorthat performs the inverseLocalTime.isAfter(LocalTime)binary comparison on the time part using the given inputs. -
isTimeAfter
-
isTimeAfter
public static Indicator<Boolean> isTimeAfter(Indicator<Instant> left, Indicator<Instant> right, ZoneId zoneId) Creates aBooleanIndicatorthat performs theLocalTime.isAfter(LocalTime)binary comparison on the time part using the given inputs. -
isTimeAfterOrEqual
-
isTimeAfterOrEqual
public static Indicator<Boolean> isTimeAfterOrEqual(Indicator<Instant> left, Indicator<Instant> right, ZoneId zoneId) Creates aBooleanIndicatorthat performs the inverseLocalTime.isBefore(LocalTime)binary comparison on the time part using the given inputs. -
isDateEqual
-
isDateEqual
public static Indicator<Boolean> isDateEqual(Indicator<Instant> left, Indicator<Instant> right, ZoneId zoneId) Creates aBooleanIndicatorthat performs theLocalDate.equals(Object)binary comparison on the date part using the given inputs. -
isDateBefore
-
isDateBefore
public static Indicator<Boolean> isDateBefore(Indicator<Instant> left, Indicator<Instant> right, ZoneId zoneId) Creates aBooleanIndicatorthat performs theLocalDate.isBefore(ChronoLocalDate)binary comparison on the date part using the given inputs. -
isDateBeforeOrEqual
-
isDateBeforeOrEqual
public static Indicator<Boolean> isDateBeforeOrEqual(Indicator<Instant> left, Indicator<Instant> right, ZoneId zoneId) Creates aBooleanIndicatorthat performs the inverseLocalDate.isAfter(ChronoLocalDate)binary comparison on the date part using the given inputs. -
isDateAfter
-
isDateAfter
public static Indicator<Boolean> isDateAfter(Indicator<Instant> left, Indicator<Instant> right, ZoneId zoneId) Creates aBooleanIndicatorthat performs theLocalDate.isAfter(ChronoLocalDate)binary comparison on the date part using the given inputs. -
isDateAfterOrEqual
-
isDateAfterOrEqual
public static Indicator<Boolean> isDateAfterOrEqual(Indicator<Instant> left, Indicator<Instant> right, ZoneId zoneId) Creates aBooleanIndicatorthat performs the inverseLocalDate.isBefore(ChronoLocalDate)binary comparison on the date part using the given inputs.
-