├── .idea
├── .gitignore
├── compiler.xml
├── discord.xml
├── jarRepositories.xml
├── misc.xml
├── uiDesigner.xml
└── vcs.xml
├── ComputerAPI.iml
├── LICENSE
├── README.md
├── pom.xml
└── src
└── main
└── java
└── com
└── github
└── cemicyz
└── computerapi
├── ComputerAPI.java
└── Sample.java
/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 |
--------------------------------------------------------------------------------
/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/.idea/discord.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/jarRepositories.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/.idea/uiDesigner.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | -
6 |
7 |
8 | -
9 |
10 |
11 | -
12 |
13 |
14 | -
15 |
16 |
17 | -
18 |
19 |
20 |
21 |
22 |
23 | -
24 |
25 |
26 |
27 |
28 |
29 | -
30 |
31 |
32 |
33 |
34 |
35 | -
36 |
37 |
38 |
39 |
40 |
41 | -
42 |
43 |
44 |
45 |
46 | -
47 |
48 |
49 |
50 |
51 | -
52 |
53 |
54 |
55 |
56 | -
57 |
58 |
59 |
60 |
61 | -
62 |
63 |
64 |
65 |
66 | -
67 |
68 |
69 |
70 |
71 | -
72 |
73 |
74 | -
75 |
76 |
77 |
78 |
79 | -
80 |
81 |
82 |
83 |
84 | -
85 |
86 |
87 |
88 |
89 | -
90 |
91 |
92 |
93 |
94 | -
95 |
96 |
97 |
98 |
99 | -
100 |
101 |
102 | -
103 |
104 |
105 | -
106 |
107 |
108 | -
109 |
110 |
111 | -
112 |
113 |
114 |
115 |
116 | -
117 |
118 |
119 | -
120 |
121 |
122 |
123 |
124 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/ComputerAPI.iml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
2 | Version 2, December 2004
3 |
4 | Copyright (C) 2021 cemicyz
5 |
6 | Everyone is permitted to copy and distribute verbatim or modified
7 | copies of this license document, and changing it is allowed as long
8 | as the name is changed.
9 |
10 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
11 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
12 |
13 | 0. You just DO WHAT THE FUCK YOU WANT TO.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## Computer API
2 | ##### Description
3 | *Is your computer turned on? Find it out with this API*
4 | ##### Usage
5 | ```java
6 | package com.github.cemicyz.computerapi;
7 |
8 | final class Sample {
9 |
10 | /*
11 | Is your computer turned on? Find it out with this API
12 | */
13 |
14 | public static void main(String[] args) {
15 | System.out.println("Computer is : " + (ComputerAPI.isOn() ? "on" : "off"));
16 | }
17 | }
18 | ```
19 | ##### Maven
20 | ```xml
21 |
22 |
23 | jitpack.io
24 | https://jitpack.io
25 |
26 |
27 |
28 |
29 | com.github.cemicyz
30 | computer-api
31 | 1.0-SNAPSHOT
32 |
33 | ```
34 | ##### Gradle
35 | ```gradle
36 | allprojects {
37 | repositories {
38 | ...
39 | maven { url 'https://jitpack.io' }
40 | }
41 | }
42 |
43 | dependencies {
44 | implementation 'com.github.cemicyz:computer-api:1.0-SNAPSHOT'
45 | }
46 | ```
47 |
--------------------------------------------------------------------------------
/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 4.0.0
6 |
7 | com.github.cemicyz
8 | ComputerAPI
9 | 1.0-SNAPSHOT
10 |
11 |
12 |
--------------------------------------------------------------------------------
/src/main/java/com/github/cemicyz/computerapi/ComputerAPI.java:
--------------------------------------------------------------------------------
1 | package com.github.cemicyz.computerapi;
2 |
3 | public final class ComputerAPI {
4 |
5 | private ComputerAPI() {}
6 |
7 | public static boolean isOn() {
8 | return true;
9 | }
10 | }
--------------------------------------------------------------------------------
/src/main/java/com/github/cemicyz/computerapi/Sample.java:
--------------------------------------------------------------------------------
1 | package com.github.cemicyz.computerapi;
2 |
3 | final class Sample {
4 |
5 | /*
6 | Is your computer turned on? Find it out with this API
7 | */
8 |
9 | public static void main(String[] args) {
10 | System.out.println("Computer is : " + (ComputerAPI.isOn() ? "on" : "off"));
11 | }
12 | }
--------------------------------------------------------------------------------