跳过导航链接
A B C F G I M N O P S T 

A

alignCenter(Component) - 类 中的静态方法com.gitee.aachen0.util.Swings
将一个JFrame控件的位置在屏幕水平垂直居中

B

batAdd(Window, Component...) - 类 中的静态方法com.gitee.aachen0.util.Swings
批量将组件添加到窗体容器
batResize(int, int, Component...) - 类 中的静态方法com.gitee.aachen0.util.Swings
批量设置组件大小

C

com.gitee.aachen0.util - 程序包 com.gitee.aachen0.util
 

F

fixDigits(double, int) - 类 中的静态方法com.gitee.aachen0.util.Maths
四舍五入一个浮点数到指定小数位
formatBytes(Long) - 类 中的静态方法com.gitee.aachen0.util.Maths
将一个表示字节个数的整数自适应单位格式化输出,保留两位小数

G

getExtension(String) - 类 中的静态方法com.gitee.aachen0.util.Strings
从一个文件路径获取文件的扩展名
getMap(String) - 类 中的静态方法com.gitee.aachen0.util.Property
从一个properties文件中获取一个Map集合

I

input(String) - 类 中的静态方法com.gitee.aachen0.util.Inputs
从键盘输入读取一个String类型数据
inputChar(String) - 类 中的静态方法com.gitee.aachen0.util.Inputs
从键盘输入的一串数据中读取开头的一个char
inputDouble(String) - 类 中的静态方法com.gitee.aachen0.util.Inputs
从键盘输入读取一个double类型数据,读取失败返回值为-1.0
inputDoubles(String) - 类 中的静态方法com.gitee.aachen0.util.Inputs
从键盘接收一组小数,以double数组的形式返回
inputInt(String) - 类 中的静态方法com.gitee.aachen0.util.Inputs
从键盘输入读取一个int类型数据
inputInts(String) - 类 中的静态方法com.gitee.aachen0.util.Inputs
从键盘接收一组整数,以数组的形式返回
inputLine(String) - 类 中的静态方法com.gitee.aachen0.util.Inputs
从键盘读取一整行
inputLong(String) - 类 中的静态方法com.gitee.aachen0.util.Inputs
从键盘输入读取一个long类型数据
Inputs - com.gitee.aachen0.util中的类
time created:2018/6/26 14:01
这是一个自写的工具,简化了初学java者从键盘接收输入的过程;
使用说明:
将Tool.class文件放置在项目工作目录下,在自己的代码中可以直接通过类名调用该工具类中的方法,比如:
int x = Inputs.inputInt("请输入整数x:");
可以从键盘接收一个int类型的整数,而后赋值给变量x;
Inputs() - 类 的构造器com.gitee.aachen0.util.Inputs
 
insert(CharSequence, int, char) - 类 中的静态方法com.gitee.aachen0.util.Strings
向一个字符串的指定位置插入一个字符
insert(CharSequence, int, CharSequence) - 类 中的静态方法com.gitee.aachen0.util.Strings
向一个字符串的指定位置插入一个字符串

M

mapToProp(Map<String, String>, String, String) - 类 中的静态方法com.gitee.aachen0.util.Property
将一个Map的数据持久化到properties文件内,Map内容请使用UTF-8编码方式
mapUpdateToProp(Map<String, String>, String, String) - 类 中的静态方法com.gitee.aachen0.util.Property
将一个Map的数据添加到一个properties文件内,Map内容请使用UTF-8编码方式
Maths - com.gitee.aachen0.util中的类
Math工具类的补充,提供了一些Math类没有的功能
Maths() - 类 的构造器com.gitee.aachen0.util.Maths
 
multipleChar(char, int) - 类 中的静态方法com.gitee.aachen0.util.Strings
获取指定个数重复字符的字符串

N

numberOfChar(CharSequence, char) - 类 中的静态方法com.gitee.aachen0.util.Strings
查找指定字符在字符串中出现的次数

O

openFile(String, String...) - 类 中的静态方法com.gitee.aachen0.util.Swings
以图形化的界面获取一个文件对象

P

Phone - com.gitee.aachen0.util中的类
手机功能模拟,用于开发中的短信收发测试
Phone() - 类 的构造器com.gitee.aachen0.util.Phone
 
Property - com.gitee.aachen0.util中的类
属性文件properties和Map之间的相互转换
Property() - 类 的构造器com.gitee.aachen0.util.Property
 

S

showMessage(String, String) - 类 中的方法com.gitee.aachen0.util.Phone
在控制台显示收到的信息
Strings - com.gitee.aachen0.util中的类
字符串操作工具类
Strings() - 类 的构造器com.gitee.aachen0.util.Strings
 
Swings - com.gitee.aachen0.util中的类
Swings GUI编程工具类
Swings() - 类 的构造器com.gitee.aachen0.util.Swings
 

T

transEncode(String, String, String) - 类 中的静态方法com.gitee.aachen0.util.Strings
转码神器,将字符串从一个编码方式改为目标编码
A B C F G I M N O P S T 
跳过导航链接

Copyright © 2018. All Rights Reserved.