Commits

Author Commit Message Labels Comments Date
Saager Mhatre
migrated to gradle project
dex...@dexters-lab01
cleaned up test by static import enum constants
dexter
fixed hashcode test to verifiy hashcodes and not equality
dexter
fixed generics so that Measurement constructor is still usable without cast
Saager Mhatre
merged from yesterdays work should have done this first; still getting used to hg
Saager Mhatre
ported tests to assertThat API
dexter
cleanup ensured all objects are immutable (including not self-mutable) some constants were left non-final; fixed that fixed jobs
saa...@saager-laptop-ubuntu-8
can now deal in weights
Branches
converters
saa...@saager-laptop-ubuntu-8
Unit now delegates to Converter for conversion As opposed to creating a Unit hierarchy, we now have a Converter hierarchy with each Unit subclass initializing it's converter with the appropriate Converter implementation
Branches
converters
dexter
branching for converters impl In the spirit of 'prefer delegation over inheritance', this branch will have Unit delegate conversion to Converter impls
Branches
converters
smhatre
[svn r24] moved units subclasses into their own package
smhatre
[svn r23] more generics mods
smhatre
[svn r22] made generics more restrictive ported all tests to use s method
smhatre
[svn r21] added back job of class; accidentally deleted in refactorings
smhatre
[svn r20] can now deal in weights of kilograms and grams pulled up scaled conversion into abstract ScaledUnit generified methods in Measurement to make operations across units fail at compile time
smhatre
[svn r19] fixed jobs of classes
smhatre
[svn r18] moved Temperature.java to src dir; accidentally created in test earlier :P
smhatre
[svn r17] can deal with temperatures in kelvin now
smhatre
[svn r16] can measure temperature in celcius now
smhatre
[svn r15] can also deal with Volumes in mililitres
smhatre
[svn r14] minor refactoring; eliminated Unit suffix from Unit subclasses combined Length and Volume test into MeasureTest
smhatre
[svn r13] combined Length and Volume into Measurement generefied with Unit pulled common behaviour in VolumenUnit and LengthUnit into abstract Unit although conversion is also identical, retained in subclasses to facilitate alternate Unit subclasses
smhatre
[svn r12] added Volume to measure 3D objects renamed Unit to LengthUnit to disambiguate from VolumeUnit made Length constructors restrictive (package-protected)
Saager Mhatre
[svn r11] Length now allows floating point arithmetic
Saager Mhatre
[svn r10] minor refactoring
Saager Mhatre
[svn r9] can now add and deduct lengths from each other
Saager Mhatre
[svn r8] Length can now convert to and from kilometers
Saager Mhatre
[svn r7] can now equate Lengths in different Units
Saager Mhatre
[svn r6] moved Unit to toplevel
Saager Mhatre
[svn r5] added convenience factory method to Length.Unit to simplify Length creation
  1. Prev
  2. Next