This documentation is automatically generated by online-judge-tools/verification-helper
package library.ds.pair;
import java.util.Objects;
import library.ds.lazysegmenttree.RASM;
import library.ds.lazysegmenttree.RUSM;
/**
* RASM, RUSMの時に使う
* Pairに似ているが出力がfirstの値のみになっている
* @see Pair
* @see RASM
* @see RUSM
* @param <T>
*/
public final class Zwei<T> implements Cloneable {
public T first, second;
private Zwei(final T first, final T second) {
this.first = first;
this.second = second;
}
/**
* Zweiクラス宣言で使う
* new Zweiと同等
* @param <T>
* @param f
* @param s
* @return
*/
public static final <T> Zwei<T> of(final T f, final T s){ return new Zwei<>(f, s); }
@Override
public final boolean equals(final Object o) {
if(this == o) {
return true;
}
if(o == null || getClass() != o.getClass()) {
return false;
}
final Zwei<?> z = (Zwei<?>) o;
return first.equals(z.first) && second.equals(z.second);
}
@Override
public final int hashCode(){ return Objects.hash(first, second); }
@Override
public final String toString(){ return String.valueOf(first); }
@SuppressWarnings("unchecked")
@Override
public final Zwei<T> clone() {
try {
return (Zwei<T>) super.clone();
} catch(final CloneNotSupportedException e){
e.printStackTrace();
}
throw new Error();
}
}
Traceback (most recent call last):
File "/home/runner/.local/lib/python3.12/site-packages/onlinejudge_verify/documentation/build.py", line 71, in _render_source_code_stat
bundled_code = language.bundle(stat.path, basedir=basedir, options={'include_paths': [basedir]}).decode()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/.local/lib/python3.12/site-packages/onlinejudge_verify/languages/user_defined.py", line 68, in bundle
raise RuntimeError('bundler is not specified: {}'.format(str(path)))
RuntimeError: bundler is not specified: Java/library/ds/pair/Zwei.java