| // Copyright (c) 2016, the R8 project authors. Please see the AUTHORS file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| package com.android.tools.r8.graph; |
| import com.android.tools.r8.dex.IndexedItemCollection; |
| import com.android.tools.r8.dex.MixedSectionCollection; |
| public class DexEncodedArray extends DexItem { |
| public final DexValue[] values; |
| public DexEncodedArray(DexValue[] values) { |
| public void collectIndexedItems(IndexedItemCollection indexedItems) { |
| for (DexValue value : values) { |
| value.collectIndexedItems(indexedItems); |
| void collectMixedSectionItems(MixedSectionCollection mixedItems) { |
| return Arrays.hashCode(values); |
| public boolean equals(Object o) { |
| return (o instanceof DexEncodedArray) && (Arrays.equals(((DexEncodedArray) o).values, values)); |
| public String toString() { |
| return "EncodedArray " + Arrays.toString(values); |