jp.co.yahoo.yosegi.inmemory.IDictionary Maven / Gradle / Ivy
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 jp.co.yahoo.yosegi.inmemory;
import jp.co.yahoo.yosegi.message.objects.PrimitiveObject;
import java.io.IOException;
public interface IDictionary {
default void setBoolean( final int index , final boolean value ) throws IOException {
throw new UnsupportedOperationException( "setBoolean is not supported." );
}
default void setByte( final int index , final byte value ) throws IOException {
throw new UnsupportedOperationException( "setByte is not supported." );
}
default void setShort( final int index , final short value ) throws IOException {
throw new UnsupportedOperationException( "setShort is not supported." );
}
default void setInteger( final int index , final int value ) throws IOException {
throw new UnsupportedOperationException( "setInteger is not supported." );
}
default void setLong( final int index , final long value ) throws IOException {
throw new UnsupportedOperationException( "setLong is not supported." );
}
default void setFloat( final int index , final float value ) throws IOException {
throw new UnsupportedOperationException( "setFloat is not supported." );
}
default void setDouble( final int index , final double value ) throws IOException {
throw new UnsupportedOperationException( "setDouble is not supported." );
}
default void setBytes( final int index , final byte[] value ) throws IOException {
setBytes( index , value , 0 , value.length );
}
default void setBytes(
final int index ,
final byte[] value ,
final int start ,
final int length ) throws IOException {
throw new UnsupportedOperationException( "setBytes is not supported." );
}
default void setString( final int index , final String value ) throws IOException {
throw new UnsupportedOperationException( "setString is not supported." );
}
default void setString( final int index , final char[] value ) throws IOException {
setString( index , new String( value ) );
}
default void setString(
final int index ,
final char[] value ,
final int start ,
final int length ) throws IOException {
setString( index , new String( value , start , length ) );
}
default void setPrimitiveObject(
final int index , final PrimitiveObject value ) throws IOException {
throw new UnsupportedOperationException( "setPrimitiveObject is not supported." );
}
default PrimitiveObject getPrimitiveObject( final int index ) throws IOException {
throw new UnsupportedOperationException( "getPrimitiveObject is not supported." );
}
}