Sha256: d7b18868f07867d3858390f6e3ed36d6bdd6e442dfa09eb7087776252103c503
Contents?: true
Size: 1.13 KB
Versions: 53
Compression:
Stored size: 1.13 KB
Contents
# Clock Implement a clock that handles times without dates. You should be able to add and subtract minutes to it. Two clocks that represent the same time should be equal to each other. In order to satisfy the requirement that two clocks are considered equal just when they are set to the same time, you will need to override the [`equals`](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals(java.lang.Object)) and [`hashcode`](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode) methods in your `Clock` class. For more information on how to override these methods, see [this JavaWorld article](https://web.archive.org/web/20170528222153/http://www.javaworld.com/article/2072762/java-app-dev/object-equality.html). To run the tests: ```sh $ gradle test ``` For more detailed info about the Java track see the [help page](http://exercism.io/languages/java). ## Source Pairing session with Erin Drummond [https://twitter.com/ebdrummond](https://twitter.com/ebdrummond) ## Submitting Incomplete Solutions It's possible to submit an incomplete solution so you can see how others have completed the exercise.
Version data entries
53 entries across 53 versions & 1 rubygems