Skip to content

Commit 1c34955

Browse files
committed
Merge pull request ReactiveX#96 from ReactiveX/jw/hide-all-the-things
Hide ViewActions implementation details. Javadoc normalization.
2 parents 73e6699 + dd42ef2 commit 1c34955

16 files changed

+391
-594
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/**
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
package rx.android.internal;
15+
16+
public final class Preconditions {
17+
private Preconditions() {
18+
throw new AssertionError("No instances");
19+
}
20+
21+
public static <T> T checkNotNull(T value, String message) {
22+
if (value == null) {
23+
throw new NullPointerException(message);
24+
}
25+
return value;
26+
}
27+
28+
public static void checkArgument(boolean check, String message) {
29+
if (!check) {
30+
throw new IllegalArgumentException(message);
31+
}
32+
}
33+
34+
public static void checkState(boolean check, String message) {
35+
if (!check) {
36+
throw new IllegalStateException(message);
37+
}
38+
}
39+
}

rxandroid/src/main/java/rx/android/view/ViewActionSetActivated.java

Lines changed: 0 additions & 29 deletions
This file was deleted.

rxandroid/src/main/java/rx/android/view/ViewActionSetClickable.java

Lines changed: 0 additions & 29 deletions
This file was deleted.

rxandroid/src/main/java/rx/android/view/ViewActionSetEnabled.java

Lines changed: 0 additions & 29 deletions
This file was deleted.

rxandroid/src/main/java/rx/android/view/ViewActionSetFocusable.java

Lines changed: 0 additions & 29 deletions
This file was deleted.

rxandroid/src/main/java/rx/android/view/ViewActionSetSelected.java

Lines changed: 0 additions & 29 deletions
This file was deleted.

rxandroid/src/main/java/rx/android/view/ViewActionSetVisibility.java

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)