fulvakt

Kotlin Builtins Extension

License

License

GroupId

GroupId

com.rover12421
ArtifactId

ArtifactId

fulvakt
Last Version

Last Version

0.4
Release Date

Release Date

Type

Type

jar
Description

Description

fulvakt
Kotlin Builtins Extension
Source Code Management

Source Code Management

https://github.com/rover12421/FulvaKt/tree/master/fulvakt

Download fulvakt

How to add to project

<!-- https://jarcasting.com/artifacts/com.rover12421/fulvakt/ -->
<dependency>
    <groupId>com.rover12421</groupId>
    <artifactId>fulvakt</artifactId>
    <version>0.4</version>
</dependency>
// https://jarcasting.com/artifacts/com.rover12421/fulvakt/
implementation 'com.rover12421:fulvakt:0.4'
// https://jarcasting.com/artifacts/com.rover12421/fulvakt/
implementation ("com.rover12421:fulvakt:0.4")
'com.rover12421:fulvakt:jar:0.4'
<dependency org="com.rover12421" name="fulvakt" rev="0.4">
  <artifact name="fulvakt" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.rover12421', module='fulvakt', version='0.4')
)
libraryDependencies += "com.rover12421" % "fulvakt" % "0.4"
[com.rover12421/fulvakt "0.4"]

Dependencies

compile (1)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib jar 1.0.3

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

FulvaKt

FulvaKt 是对 kotlin.kotlin_builtins 的一些扩展.主要集中在Number的类型提升上.


Note: CharKotlin不是一个Number,算是比较特殊的一个东西.扩展中把Char当成Number来处理.所以大部分情况下都是toInt后使用.这点和Java中是一样的.

使用说明:

  1. 引入jar包

    Gradle:

    dependencies {
            compile 'com.rover12421:fulvakt:0.4'
        }

    Maven:

    <dependency>
      <groupId>com.rover12421</groupId>
      <artifactId>fulvakt</artifactId>
      <version>0.4</version>
    </dependency>
  2. 在需要的类中添加导入即可

    import com.rover12421.fulvakt.builtins_extension.*

其他说明:

  1. closeQuietly 针对Closeable? AutoCloseable?(1.7+)做的扩展 比如:FileInputStream(file).closeQuietly()

  2. arrayOfDefaultValue 使用一个默认值来初始化一个指定长度的数组 算是对arrayOfNulls这个用null填充的数组的补充

Versions

Version
0.4
0.3
0.2
0.1