MCPcopy Create free account
hub / github.com/MenoData/Time4J / of

Method of

base/src/main/java/net/time4j/GeneralTimestamp.java:113–124  ·  view source on GitHub ↗
(
        C calendarVariant,
        PlainTime time
    )

Source from the content-addressed store, hash-verified

111 * @since 3.8/4.5
112 */
113 public static <C extends CalendarVariant<C>> GeneralTimestamp<C> of(
114 C calendarVariant,
115 PlainTime time
116 ) {
117
118 if (calendarVariant == null) {
119 throw new NullPointerException("Missing date component.");
120 }
121
122 return new GeneralTimestamp<>(calendarVariant, null, time);
123
124 }
125
126 /**
127 * <p>Creates a new timestamp consisting of a general date and a time component. </p>

Callers 15

minusDaysOnTimestampMethod · 0.95
toGeneralTimestampMethod · 0.95
atMethod · 0.95
atMethod · 0.95
atMethod · 0.95
atMethod · 0.95
atMethod · 0.95
atMethod · 0.95
atMethod · 0.95
atMethod · 0.95
atMethod · 0.95

Calls

no outgoing calls

Tested by 2

minusDaysOnTimestampMethod · 0.76