Java Array Shift shiftLeft(Object[] object)

Here you can find the source of shiftLeft(Object[] object)

Description

shift Left

License

Apache License

Declaration

public static Object[] shiftLeft(Object[] object) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static Object[] shiftLeft(Object[] object) {
        if (object.length == 0) {
            return new Object[0];
        }//from   www . ja v a 2 s . c  om

        Object ret[] = new Object[object.length - 1];
        for (int i = 0; i < ret.length; i++) {
            ret[i] = object[i + 1];
        }
        return ret;

    }
}

Related

  1. shiftLeft(byte[] b1, int bytes)
  2. shiftLeft(byte[] block, byte[] output)
  3. shiftLeft(byte[] data, int shiftBy)
  4. shiftLeft(Object[] arr, int startIndex, int endIndex)
  5. shiftLeft(Object[] array, int amount)
  6. shiftLeft1(T[] array)
  7. shiftLeftAndFill(byte[] array, int positions)
  8. shiftLeftByCopying(int[] table, int shift)
  9. shiftLeftByOne(int[] table)