Long.java revision 3294:9adfb22ff08f
1214117Sjamie/*
2214117Sjamie * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
3214117Sjamie * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4214117Sjamie *
5214117Sjamie * This code is free software; you can redistribute it and/or modify it
6214117Sjamie * under the terms of the GNU General Public License version 2 only, as
7214117Sjamie * published by the Free Software Foundation.
8214117Sjamie *
9214117Sjamie * This code is distributed in the hope that it will be useful, but WITHOUT
10214117Sjamie * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11214117Sjamie * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12214117Sjamie * version 2 for more details (a copy is included in the LICENSE file that
13214117Sjamie * accompanied this code).
14214117Sjamie *
15214117Sjamie * You should have received a copy of the GNU General Public License version
16214117Sjamie * 2 along with this work; if not, write to the Free Software Foundation,
17214117Sjamie * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18214117Sjamie *
19214117Sjamie * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20214117Sjamie * or visit www.oracle.com if you need additional information or have any
21214117Sjamie * questions.
22214117Sjamie */
23214117Sjamie
24214117Sjamiepackage java.lang;
25214117Sjamie
26214117Sjamiepublic class Long extends Number
27214117Sjamie{
28214117Sjamie    public static Long valueOf(long v) {
29214117Sjamie        return new Long(v);
30214117Sjamie    }
31214117Sjamie
32214805Sjamie    public Long(long v) {
33214117Sjamie        value = v;
34214117Sjamie    }
35214117Sjamie
36214117Sjamie    public long longValue() {
37214117Sjamie        return value;
38214117Sjamie    }
39214117Sjamie
40214117Sjamie    private long value;
41214117Sjamie}
42214117Sjamie