![JAR search and dependency download from the Maven repository](/logo.png)
core.javautil.kt Maven / Gradle / Ivy
package java.util
native
private val DEFAULT_INITIAL_CAPACITY = 16
native
private val DEFAULT_LOAD_FACTOR = 0.75f
library
public trait Comparator {
public fun compare(obj1: T, obj2: T): Int;
}
library
public abstract class AbstractCollection() : MutableCollection {
override fun isEmpty(): Boolean = noImpl
override fun contains(o: Any?): Boolean = noImpl
override fun iterator(): MutableIterator = noImpl
override fun add(e: E): Boolean = noImpl
override fun remove(o: Any?): Boolean = noImpl
override fun addAll(c: Collection): Boolean = noImpl
override fun containsAll(c: Collection): Boolean = noImpl
override fun removeAll(c: Collection): Boolean = noImpl
override fun retainAll(c: Collection): Boolean = noImpl
override fun clear(): Unit = noImpl
abstract override fun size(): Int
override fun hashCode(): Int = noImpl
override fun equals(other: Any?): Boolean = noImpl
}
library
public abstract class AbstractList() : AbstractCollection(), MutableList {
abstract override fun get(index: Int): E
override fun set(index: Int, element: E): E = noImpl
override fun add(e: E): Boolean = noImpl
override fun add(index: Int, element: E): Unit = noImpl
override fun addAll(index: Int, c: Collection): Boolean = noImpl
override fun remove(index: Int): E = noImpl
override fun indexOf(o: Any?): Int = noImpl
override fun lastIndexOf(o: Any?): Int = noImpl
override fun listIterator(): MutableListIterator = noImpl
override fun listIterator(index: Int): MutableListIterator = noImpl
override fun subList(fromIndex: Int, toIndex: Int): MutableList = noImpl
override fun size(): Int = noImpl
override fun equals(other: Any?): Boolean = noImpl
override fun toString(): String = noImpl
}
library
public open class ArrayList(capacity: Int = 0) : AbstractList() {
override fun get(index: Int): E = noImpl
override fun size(): Int = noImpl
}
library
public open class LinkedList() : AbstractList() {
override fun get(index: Int): E = noImpl
override fun set(index: Int, element: E): E = noImpl
override fun add(index: Int, element: E): Unit = noImpl
@suppress("BASE_WITH_NULLABLE_UPPER_BOUND")
public fun poll(): E? = noImpl
@suppress("BASE_WITH_NULLABLE_UPPER_BOUND")
public fun peek(): E? = noImpl
public fun offer(e: E): Boolean = noImpl
}
library
public open class HashSet(
initialCapacity: Int = DEFAULT_INITIAL_CAPACITY, loadFactor: Float = DEFAULT_LOAD_FACTOR
) : AbstractCollection(), MutableSet {
override fun size(): Int = noImpl
}
library
public trait SortedSet : Set {
}
library
public open class TreeSet() : AbstractCollection(), MutableSet, SortedSet {
override fun size(): Int = noImpl
}
library
public open class LinkedHashSet(
initialCapacity: Int = DEFAULT_INITIAL_CAPACITY, loadFactor: Float = DEFAULT_LOAD_FACTOR
) : HashSet(initialCapacity, loadFactor), MutableSet {
override fun size(): Int = noImpl
}
library
public open class HashMap(initialCapacity: Int = DEFAULT_INITIAL_CAPACITY, loadFactor: Float = DEFAULT_LOAD_FACTOR) : MutableMap {
override fun size(): Int = noImpl
override fun isEmpty(): Boolean = noImpl
@suppress("BASE_WITH_NULLABLE_UPPER_BOUND")
override fun get(key: Any?): V? = noImpl
override fun containsKey(key: Any?): Boolean = noImpl
@suppress("BASE_WITH_NULLABLE_UPPER_BOUND")
override fun put(key: K, value: V): V? = noImpl
override fun putAll(m: Map): Unit = noImpl
@suppress("BASE_WITH_NULLABLE_UPPER_BOUND")
override fun remove(key: Any?): V? = noImpl
override fun clear(): Unit = noImpl
override fun containsValue(value: Any?): Boolean = noImpl
override fun keySet(): MutableSet = noImpl
override fun values(): MutableCollection = noImpl
override fun entrySet(): MutableSet> = noImpl
}
library
public open class LinkedHashMap(
initialCapacity: Int = DEFAULT_INITIAL_CAPACITY, loadFactor: Float = DEFAULT_LOAD_FACTOR, accessOrder: Boolean = false
) : HashMap(initialCapacity, loadFactor)
library
public open class NoSuchElementException(message: String? = null) : Exception() {}
library
public trait Enumeration {
public fun hasMoreElements(): Boolean
public fun nextElement(): E
}
native
public class Date() {
public fun getTime(): Int = noImpl
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy