// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.debugger.memory.agent.parsers

import com.sun.jdi.BooleanValue
import com.sun.jdi.Value

object BooleanParser : ResultParser<Boolean> {
  override fun parse(value: Value): Boolean {
    return (value as? BooleanValue)?.value() ?: false
  }
}