Skip to content

Commit

Permalink
Merge pull request #96 from ReactiveX/jw/hide-all-the-things
Browse files Browse the repository at this point in the history
Hide ViewActions implementation details. Javadoc normalization.
  • Loading branch information
mttkay committed Dec 3, 2014
2 parents 73e6699 + dd42ef2 commit 1c34955
Show file tree
Hide file tree
Showing 16 changed files with 391 additions and 594 deletions.
39 changes: 39 additions & 0 deletions rxandroid/src/main/java/rx/android/internal/Preconditions.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package rx.android.internal;

public final class Preconditions {
private Preconditions() {
throw new AssertionError("No instances");
}

public static <T> T checkNotNull(T value, String message) {
if (value == null) {
throw new NullPointerException(message);
}
return value;
}

public static void checkArgument(boolean check, String message) {
if (!check) {
throw new IllegalArgumentException(message);
}
}

public static void checkState(boolean check, String message) {
if (!check) {
throw new IllegalStateException(message);
}
}
}

This file was deleted.

This file was deleted.

29 changes: 0 additions & 29 deletions rxandroid/src/main/java/rx/android/view/ViewActionSetEnabled.java

This file was deleted.

This file was deleted.

29 changes: 0 additions & 29 deletions rxandroid/src/main/java/rx/android/view/ViewActionSetSelected.java

This file was deleted.

This file was deleted.

Loading

0 comments on commit 1c34955

Please sign in to comment.