blob: ca376e75a16fe4659e56f2cb6f033f707bfeea4d [file] [log] [blame]
// Copyright (c) 2020, 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.ir.analysis.value;
public class BottomValue extends AbstractValue {
private static final BottomValue INSTANCE = new BottomValue();
private BottomValue() {}
public static BottomValue getInstance() {
return INSTANCE;
}
@Override
public boolean isBottom() {
return true;
}
@Override
public boolean isNonTrivial() {
return true;
}
@Override
public boolean equals(Object o) {
return this == o;
}
@Override
public int hashCode() {
return System.identityHashCode(this);
}
@Override
public String toString() {
return "BottomValue";
}
}