blob: 1f8d725109f056699e2fed03f89470377c9c7db6 [file] [log] [blame]
/*=============================================================================#
# Copyright (c) 2009, 2020 Stephan Wahlbrink and others.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# https://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
# which is available at https://www.apache.org/licenses/LICENSE-2.0.
#
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
#
# Contributors:
# Stephan Wahlbrink <sw@wahlbrink.eu> - initial API and implementation
#=============================================================================*/
package org.eclipse.statet.rj.data;
import org.eclipse.statet.jcommons.lang.NonNullByDefault;
import org.eclipse.statet.jcommons.lang.Nullable;
/**
* Interface for R data stores of type {@link RStore#LOGICAL}.
* <p>
* An R data store implements this interface if the R function
* <code>typeof(object)</code> returns 'logical'.</p>
*/
@NonNullByDefault
public interface RLogicalStore extends RStore<Boolean> {
String FALSE_CHAR= "FALSE";
String TRUE_CHAR= "TRUE";
byte FALSE_BYTE= 0;
byte TRUE_BYTE= 1;
int FALSE_INT= FALSE_BYTE;
int TRUE_INT= TRUE_BYTE;
@Override
@Nullable Boolean get(int idx);
@Override
@Nullable Boolean get(long idx);
@Override
@Nullable Boolean [] toArray();
}