java(eclipse)UML工具 umlet
umlet 使用java编写的一款小型uml工具,可以作为eclipse的插件安装,也可以独立运行。
umlet真可谓短小精悍,非常之小,容易上手,我喜欢这样简单实用的软件。
umlet不支持反向等高级功能。
UMLet is a UML tool aimed at providing a fast way of creating UML diagrams. UML elements are modified using text input instead of pop-up dialogs. Elements can be modified and used as templates; this way, users can easily tailor UMLet to their modeling needs. UMLet supports a variety of UML diagram types: class diagrams, use case diagrams, sequence diagrams, state diagrams, deployment diagrams, activity diagrams -- see some examples.
UMLet allows users to create their own custom UML elements. An element's look can be modified at run-time by changing a few lines of Java code; UMLet then compiles the new element's code on the fly. Without leaving UMLet, users can thus create and add new element types to their diagrams.
UMLet's design goals are also described in this paper and this one. The custom elements' concept is describedhere. Another simple UML tool is Violet.
www.umlet.com
相关文档:
在java中,使用double进行运算,有时会出现精度丢失的问题,值会有那么0.00000***1偏差的偏差,导致匹配校验常常出现问题
解决方案如下:
/**
* 对double数据进行取精度.
* @param value double数据.
* ......
java计算时间差
文章分类:Java编程
比如:现在是2004-03-26 13:31:40
过去是:2004-01-02 11:30:24
我现在要获得两个日期差,差的形式为:XX天XX小时XX分XX秒
方法一:
DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
try
{
Date d1 = df.parse("2004-03-26 13:31:40");
......
Java关键字final、static使用总结
Java关键字final、static使用总结
一、final
根据程序上下文环境,Java关键字final有“这是无法改变的”或者“终态的”含义,它可以修饰非抽象类、非抽象类成员方法和变量。你可能出于两种理解而需要 ......
今天经理让写一个,根据信息上传时间,显示,?分钟前,?小时前,?天前,类似qq空间发表的心情日期;
用了一个自我感觉笨的方法,不过还是实现了,呵呵呵
public static String getCompareTime(String filetime){
//返回的字符串
String retStr =""; ......
国际化(Internationalization,I18N):希望产品是广泛适用性
本地化(Localization,L10N):能够符合当地的习惯
应用程序国际化的目标:
编写在任何受支持的区域设置中都同样能正常运行(且外观表现本地化)的代码。
国际化中的Unicode编码
·国际化/本地化工作的焦点:
语言、数字格式、日期时间格式、货币 ......