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

Version Path
trackler-2.2.1.47 tracks/java/exercises/clock/README.md
trackler-2.2.1.46 tracks/java/exercises/clock/README.md
trackler-2.2.1.45 tracks/java/exercises/clock/README.md
trackler-2.2.1.44 tracks/java/exercises/clock/README.md
trackler-2.2.1.43 tracks/java/exercises/clock/README.md
trackler-2.2.1.42 tracks/java/exercises/clock/README.md
trackler-2.2.1.41 tracks/java/exercises/clock/README.md
trackler-2.2.1.40 tracks/java/exercises/clock/README.md
trackler-2.2.1.39 tracks/java/exercises/clock/README.md
trackler-2.2.1.38 tracks/java/exercises/clock/README.md
trackler-2.2.1.37 tracks/java/exercises/clock/README.md
trackler-2.2.1.36 tracks/java/exercises/clock/README.md
trackler-2.2.1.35 tracks/java/exercises/clock/README.md
trackler-2.2.1.34 tracks/java/exercises/clock/README.md
trackler-2.2.1.33 tracks/java/exercises/clock/README.md
trackler-2.2.1.32 tracks/java/exercises/clock/README.md
trackler-2.2.1.31 tracks/java/exercises/clock/README.md
trackler-2.2.1.30 tracks/java/exercises/clock/README.md
trackler-2.2.1.29 tracks/java/exercises/clock/README.md
trackler-2.2.1.28 tracks/java/exercises/clock/README.md