Wrote a Matrix class and fixed all uses of it, as well as other small fixes like...
[zxing.git] / core / src / com / google / zxing / qrcode / encoder / Debug.java
1 /*
2  * Copyright 2008 ZXing authors
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package com.google.zxing.qrcode.encoder;
18
19 /**
20  * JAVAPORT: Equivalent methods to the C++ versions. It's debateable whether these should throw or
21  * assert. We can revisit that decision, or remove these throughout the code later.
22  *
23  * @author dswitkin@google.com (Daniel Switkin)
24  */
25 public class Debug {
26
27   public static final void LOG_ERROR(String message) {
28     // TODO: Implement
29   }
30
31   public static final void LOG_INFO(String message) {
32     // TODO: Implement
33   }
34
35   public static final void DCHECK(boolean condition) {
36     assert(condition);
37   }
38
39   public static final void DCHECK_LT(int a, int b) {
40     assert(a < b);
41   }
42
43   public static final void DCHECK_LE(int a, int b) {
44     assert(a <= b);
45   }
46
47   public static final void DCHECK_GT(int a, int b) {
48     assert(a > b);
49   }
50
51   public static final void DCHECK_GE(int a, int b) {
52     assert(a >= b);
53   }
54
55   public static final void DCHECK_EQ(int a, int b) {
56     assert(a == b);
57   }
58
59 }