summaryrefslogtreecommitdiff
path: root/java/lang/invoke/ByteBufferViewVarHandle.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/lang/invoke/ByteBufferViewVarHandle.java')
-rw-r--r--java/lang/invoke/ByteBufferViewVarHandle.java38
1 files changed, 0 insertions, 38 deletions
diff --git a/java/lang/invoke/ByteBufferViewVarHandle.java b/java/lang/invoke/ByteBufferViewVarHandle.java
deleted file mode 100644
index 74f3b0cb..00000000
--- a/java/lang/invoke/ByteBufferViewVarHandle.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (C) 2017 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package java.lang.invoke;
-
-import java.nio.ByteBuffer;
-import java.nio.ByteOrder;
-
-/**
- * A VarHandle to access byte array elements as an array of primitive types.
- * @hide
- */
-final class ByteBufferViewVarHandle extends VarHandle {
- private ByteOrder byteOrder;
-
- private ByteBufferViewVarHandle(Class<?> arrayClass, ByteOrder byteOrder) {
- super(arrayClass.getComponentType(), byte[].class, false /* isFinal */,
- ByteBuffer.class, int.class);
- this.byteOrder = byteOrder;
- }
-
- static ByteBufferViewVarHandle create(Class<?> arrayClass, ByteOrder byteOrder) {
- return new ByteBufferViewVarHandle(arrayClass, byteOrder);
- }
-}