1: JavaはIntersection typeやUnion typeを(部分的に)サポートしている
Hoge & Piyo hogePiyo = (Hoge & Piyo) fuga;
// TはCloneableを実装していてSerializableも実装しているクラス
class Hoge<T extends Cloneable & Serializable> {
// ...
/* | |
Copyright 2020 KisaragiEffective | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
/* | |
Copyright 2020 KisaragiEffective | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE |
alias cls=clear | |
alias mkdirs="mkdir -r" | |
alias symlink="ln -sr" | |
sudo apt install -y curl neovim | |
# 日本語バイバイ | |
symlink ~/テンプレート ~/template | |
symlink ~/デスクトップ ~/desktop | |
symlink ~/ドキュメント ~/document | |
symlink ~/ビデオ ~/video |
1: JavaはIntersection typeやUnion typeを(部分的に)サポートしている
Hoge & Piyo hogePiyo = (Hoge & Piyo) fuga;
// TはCloneableを実装していてSerializableも実装しているクラス
class Hoge<T extends Cloneable & Serializable> {
// ...
// Currying on Kotlin | |
val s = " " | |
(2..22).forEach { c -> | |
val r = 1..c | |
val indent = s::repeat | |
val generic = r.joinToString(", ") { "E$it" } | |
val retLambda = r.joinToString(" -> ") { "(E$it)" } + " -> R" | |
val argument = r.joinToString(", ") { "e$it" } | |
val head = r.joinToString("\n") { indent(it+1) + indent(1).dropLast(1) + "{ e$it ->" } | |
.drop(s.length * 3 - 1) |
import java.io.* | |
import java.net.HttpURLConnection | |
import java.net.URL | |
import java.nio.file.Files | |
import java.nio.file.Paths | |
import java.text.DecimalFormat | |
import java.util.* | |
import java.util.zip.ZipEntry | |
import java.util.zip.ZipInputStream |
CommandExecutor
ではなくCommand
クラスを拡張することItem(int)
or Item.get(int)
or ItemXXX
を触るPlayerInterectEvent
はBLOCKとAIRで2回呼ばれるimport java.math.BigInteger as bigint | |
private fun solve() { | |
} | |
fun main(s: Array<String>) = solve() | |
fun String.toBigInteger() = bigint(this) | |
val gets: List<String> |
機能 | シングルバイト | マルチバイト |
---|---|---|
大文字 | strtoupper |
mb_strtoupper |
小文字 | strtolower |
mb_strtolower |
長さ | strlen |
mb_strlen |