Java Long Number Create convertLongArray(long[] arr)

Here you can find the source of convertLongArray(long[] arr)

Description

convert Long Array

License

Open Source License

Declaration

public static Long[] convertLongArray(long[] arr) 

Method Source Code

//package com.java2s;
/*/*from w  w  w . ja  v a 2s .  c o  m*/
 * PortUtil.cs
 * Copyright ? 2009-2011 kbinani
 *
 * This file is part of org.kbinani.
 *
 * org.kbinani is free software; you can redistribute it and/or
 * modify it under the terms of the BSD License.
 *
 * org.kbinani is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 */

public class Main {
    public static Long[] convertLongArray(long[] arr) {
        Long[] ret = new Long[arr.length];

        for (int i = 0; i < arr.length; i++) {
            ret[i] = arr[i];
        }

        return ret;
    }

    public static long[] convertLongArray(Long[] arr) {
        long[] ret = new long[arr.length];

        for (int i = 0; i < arr.length; i++) {
            ret[i] = arr[i];
        }

        return ret;
    }
}

Related

  1. convertLong(byte[] data, int offset)
  2. convertLong(long v, boolean isLE)
  3. convertLong2FourBytes(long data)
  4. convertLongAddressToBuf(long ipAddress)
  5. convertLongArrayFromHex(char[] hex)
  6. convertLongArrayToDoubleArray(long[] values)
  7. convertLongFromBytes(byte[] bytes)
  8. convertLongitudeFromMercator( double mercatorLongitude)