summaryrefslogtreecommitdiff
path: root/sources/scala/Char.java
blob: a875e717df0c8bad8968298e42b2a98f2953855d (plain) (blame)
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
/*                     __                                               *\
**     ________ ___   / /  ___     Scala API                            **
**    / __/ __// _ | / /  / _ |    (c) 2002, LAMP/EPFL                  **
**  __\ \/ /__/ __ |/ /__/ __ |                                         **
** /____/\___/_/ |_/____/_/ | |                                         **
**                          |/                                          **
\*                                                                      */

// $Id$

package scala;

/** @meta class extends scala.AnyVal; */
public abstract class Char    extends AnyVal implements java.io.Serializable {

    public final char    value;

    public Char   (char    value) {
        this.value = value;
    }

    public boolean equals(java.lang.Object other) {
        return other instanceof Char    && value == ((Char   )other).value;
    }
    public int hashCode() {
        int  bits = value;
        return bits;
    }
    public String toString() {
        return String.valueOf(value);
    }

    /** @meta method []scala.Byte; */
    public byte toByte() { return (byte)value; }

    /** @meta method []scala.Short; */
    public short toShort() { return (short)value; }

    /** @meta method []scala.Char; */
    public char toChar() { return (char)value; }

    /** @meta method []scala.Int; */
    public int toInt() { return (int)value; }

    /** @meta method []scala.Long; */
    public long toLong() { return (long)value; }

    /** @meta method []scala.Float; */
    public float toFloat() { return (float)value; }

    /** @meta method []scala.Double; */
    public double toDouble() { return (double)value; }

    /** @meta method (scala.Any)scala.Boolean; */
    public boolean $eq$eq  (java.lang.Object other) { return  equals(other); }
    /** @meta method (scala.Any)scala.Boolean; */
    public boolean $bang$eq(java.lang.Object other) { return !equals(other); }

    /** @meta method []scala.Int    ; */
    public int     $plus      (            ) { return +value        ; }
    /** @meta method []scala.Int    ; */
    public int     $minus     (            ) { return -value        ; }

    public String  $plus      (String  that) { return  value +  that; }

    public boolean $eq$eq     (double  that) { return  value == that; }
    public boolean $bang$eq   (double  that) { return  value != that; }
    public boolean $less      (double  that) { return  value <  that; }
    public boolean $greater   (double  that) { return  value >  that; }
    public boolean $less$eq   (double  that) { return  value <= that; }
    public boolean $greater$eq(double  that) { return  value >= that; }
    public double  $plus      (double  that) { return  value +  that; }
    public double  $minus     (double  that) { return  value -  that; }
    public double  $times     (double  that) { return  value *  that; }
    public double  $div       (double  that) { return  value /  that; }
    public double  $percent   (double  that) { return  value %  that; }

    /** @meta method []scala.Double ; */
    public double  coerce     (            ) { return  value        ; }

    public boolean $eq$eq     (float   that) { return  value == that; }
    public boolean $bang$eq   (float   that) { return  value != that; }
    public boolean $less      (float   that) { return  value <  that; }
    public boolean $greater   (float   that) { return  value >  that; }
    public boolean $less$eq   (float   that) { return  value <= that; }
    public boolean $greater$eq(float   that) { return  value >= that; }
    public float   $plus      (float   that) { return  value +  that; }
    public float   $minus     (float   that) { return  value -  that; }
    public float   $times     (float   that) { return  value *  that; }
    public float   $div       (float   that) { return  value /  that; }
    public float   $percent   (float   that) { return  value %  that; }

    /** @meta method []scala.Float  ; */
    public float   coerce     (            ) { return  value        ; }
    /** @meta method []scala.Int    ; */
    public int     $tilde     (            ) { return ~value        ; }

    public int     $less$less (int     that) { return  value << that; }
    public int     $less$less (long    that) { return  value << that; }
    public int     $greater$greater(int     that) { return  value >> that; }
    public int     $greater$greater(long    that) { return  value >> that; }
    public int     $greater$greater$greater(int     that) { return  value >>>that; }
    public int     $greater$greater$greater(long    that) { return  value >>>that; }

    public boolean $eq$eq     (long    that) { return  value == that; }
    public boolean $bang$eq   (long    that) { return  value != that; }
    public boolean $less      (long    that) { return  value <  that; }
    public boolean $greater   (long    that) { return  value >  that; }
    public boolean $less$eq   (long    that) { return  value <= that; }
    public boolean $greater$eq(long    that) { return  value >= that; }
    public long    $plus      (long    that) { return  value +  that; }
    public long    $minus     (long    that) { return  value -  that; }
    public long    $times     (long    that) { return  value *  that; }
    public long    $div       (long    that) { return  value /  that; }
    public long    $percent   (long    that) { return  value %  that; }
    public long    $bar       (long    that) { return  value |  that; }
    public long    $amp       (long    that) { return  value &  that; }
    public long    $up        (long    that) { return  value ^  that; }

    /** @meta method []scala.Long   ; */
    public long    coerce     (            ) { return  value        ; }

    public boolean $eq$eq     (int     that) { return  value == that; }
    public boolean $bang$eq   (int     that) { return  value != that; }
    public boolean $less      (int     that) { return  value <  that; }
    public boolean $greater   (int     that) { return  value >  that; }
    public boolean $less$eq   (int     that) { return  value <= that; }
    public boolean $greater$eq(int     that) { return  value >= that; }
    public int     $plus      (int     that) { return  value +  that; }
    public int     $minus     (int     that) { return  value -  that; }
    public int     $times     (int     that) { return  value *  that; }
    public int     $div       (int     that) { return  value /  that; }
    public int     $percent   (int     that) { return  value %  that; }
    public int     $bar       (int     that) { return  value |  that; }
    public int     $amp       (int     that) { return  value &  that; }
    public int     $up        (int     that) { return  value ^  that; }

    public boolean $eq$eq     (char     that) { return  value == that; }
    public boolean $bang$eq   (char     that) { return  value != that; }
    public boolean $less      (char     that) { return  value <  that; }
    public boolean $greater   (char     that) { return  value >  that; }
    public boolean $less$eq   (char     that) { return  value <= that; }
    public boolean $greater$eq(char     that) { return  value >= that; }
    public int     $plus      (char     that) { return  value +  that; }
    public int     $minus     (char     that) { return  value -  that; }
    public int     $times     (char     that) { return  value *  that; }
    public int     $div       (char     that) { return  value /  that; }
    public int     $percent   (char     that) { return  value %  that; }
    public int     $bar       (char     that) { return  value |  that; }
    public int     $amp       (char     that) { return  value &  that; }
    public int     $up        (char     that) { return  value ^  that; }

    public boolean $eq$eq     (short     that) { return  value == that; }
    public boolean $bang$eq   (short     that) { return  value != that; }
    public boolean $less      (short     that) { return  value <  that; }
    public boolean $greater   (short     that) { return  value >  that; }
    public boolean $less$eq   (short     that) { return  value <= that; }
    public boolean $greater$eq(short     that) { return  value >= that; }
    public int     $plus      (short     that) { return  value +  that; }
    public int     $minus     (short     that) { return  value -  that; }
    public int     $times     (short     that) { return  value *  that; }
    public int     $div       (short     that) { return  value /  that; }
    public int     $percent   (short     that) { return  value %  that; }
    public int     $bar       (short     that) { return  value |  that; }
    public int     $amp       (short     that) { return  value &  that; }
    public int     $up        (short     that) { return  value ^  that; }

    public boolean $eq$eq     (byte     that) { return  value == that; }
    public boolean $bang$eq   (byte     that) { return  value != that; }
    public boolean $less      (byte     that) { return  value <  that; }
    public boolean $greater   (byte     that) { return  value >  that; }
    public boolean $less$eq   (byte     that) { return  value <= that; }
    public boolean $greater$eq(byte     that) { return  value >= that; }
    public int     $plus      (byte     that) { return  value +  that; }
    public int     $minus     (byte     that) { return  value -  that; }
    public int     $times     (byte     that) { return  value *  that; }
    public int     $div       (byte     that) { return  value /  that; }
    public int     $percent   (byte     that) { return  value %  that; }
    public int     $bar       (byte     that) { return  value |  that; }
    public int     $amp       (byte     that) { return  value &  that; }
    public int     $up        (byte     that) { return  value ^  that; }


    /** @meta method []scala.Int    ; */
    public int     coerce     (            ) { return  value        ; }

}