elemental2.dom.PerformanceMeasureOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jacline-elemental2-dom Show documentation
Show all versions of jacline-elemental2-dom Show documentation
Thin Java abstractions for the standard built-in objects for
Javascript.
The newest version!
package elemental2.dom;
import jsinterop.annotations.JsProperty;
import jsinterop.base.Js;
import java.lang.Double;
import jsinterop.annotations.JsOverlay;
import java.lang.Object;
import java.lang.String;
import jsinterop.annotations.JsType;
import jsinterop.annotations.JsPackage;
import jsinterop.base.JsPropertyMap;
import elemental2.core.JsObject;
@JsType(isNative = true,namespace = JsPackage.GLOBAL)
public interface PerformanceMeasureOptions{
@JsType(isNative = true,name = "?",namespace = JsPackage.GLOBAL)
public interface GetEndUnionType{
@JsOverlay
static PerformanceMeasureOptions.GetEndUnionType of(Object o){
return Js.cast(o);
}
@JsOverlay
default double asDouble(){
return Js.asDouble(this);
}
@JsOverlay
default String asString(){
return Js.asString(this);
}
@JsOverlay
default boolean isDouble(){
return (Object)this instanceof Double;
}
@JsOverlay
default boolean isString(){
return (Object)this instanceof String;
}
}
@JsType(isNative = true,name = "?",namespace = JsPackage.GLOBAL)
public interface GetStartUnionType{
@JsOverlay
static PerformanceMeasureOptions.GetStartUnionType of(Object o){
return Js.cast(o);
}
@JsOverlay
default double asDouble(){
return Js.asDouble(this);
}
@JsOverlay
default String asString(){
return Js.asString(this);
}
@JsOverlay
default boolean isDouble(){
return (Object)this instanceof Double;
}
@JsOverlay
default boolean isString(){
return (Object)this instanceof String;
}
}
@JsOverlay
static PerformanceMeasureOptions create(){
return Js.uncheckedCast(JsPropertyMap.of());
}
@JsProperty
JsObject getDetail();
@JsProperty
double getDuration();
@JsProperty
PerformanceMeasureOptions.GetEndUnionType getEnd();
@JsProperty
PerformanceMeasureOptions.GetStartUnionType getStart();
@JsProperty
void setDetail(JsObject detail);
@JsOverlay
default void setDetail(Object detail){
setDetail(Js.uncheckedCast(detail));
}
@JsProperty
void setDuration(double duration);
@JsProperty
void setEnd(PerformanceMeasureOptions.GetEndUnionType end);
@JsOverlay
default void setEnd(String end){
setEnd(Js.uncheckedCast(end));
}
@JsOverlay
default void setEnd(double end){
setEnd(Js.uncheckedCast(end));
}
@JsProperty
void setStart(PerformanceMeasureOptions.GetStartUnionType start);
@JsOverlay
default void setStart(String start){
setStart(Js.uncheckedCast(start));
}
@JsOverlay
default void setStart(double start){
setStart(Js.uncheckedCast(start));
}
}