Skip to content

Commit f048a29

Browse files
author
Vladimir Klimontovich
committed
Intial version
1 parent 53e68d0 commit f048a29

File tree

2 files changed

+38
-8
lines changed

2 files changed

+38
-8
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
JavaTest1
2-
=========
1+
Test for JavaDevelopers (Level 1)
2+
=================================
33

4-
Test for Java Developers (Level 1)
4+
Please, take a look to interface com.getintent.interview.MonochromeScreen and it's
5+
documentation. You should:
6+
7+
* Clone repository
8+
* Implement the interface partially: only init() and drawHorizontalLine() methods should be implemented. All others would throw UnsupportedOperationException
9+
* Please, use as least memory as possible. The key problem here is finding efficient memory structure
10+
* Also please implement unit test for you implementation (use any library you like)
11+
* Ideally, you make a fork and pull request on GitHub. Archiving you local repository and sending to us also works.
Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,34 @@
11
package com.getintent.interview;
22

33
/**
4-
* Created with IntelliJ IDEA.
5-
* User: vklimontovich
6-
* Date: 20/11/13
7-
* Time: 19:29
8-
* To change this template use File | Settings | File Templates.
4+
* The interface that represents state of monochrome screen
95
*/
106
public interface MonochromeScreen {
7+
/**
8+
* Initializes the screen.
9+
* @param width screen width
10+
* @param height screen width
11+
*/
12+
public void init(int width, int height);
13+
14+
/**
15+
* Draws horizontal line.
16+
* @param x1 left x coordinate of the line
17+
* @param x2 right x coordinate of the line
18+
* @param y y coordinate of line
19+
*/
20+
public void drawHorizontalLine(int x1, int x2, int y);
21+
22+
/**
23+
* Draws circle
24+
* @param x x coordinates of center
25+
* @param y y coordinate of center
26+
* @param r radius
27+
*/
28+
public void drawCircle(int x, int y, int r);
29+
30+
/**
31+
* Draws line
32+
*/
33+
public void drawLine(int x1, int y1, int x2, int y2);
1134
}

0 commit comments

Comments
 (0)