io.advantageous.boon.core.Value.toValue()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(67)

本文整理了Java中io.advantageous.boon.core.Value.toValue()方法的一些代码示例,展示了Value.toValue()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Value.toValue()方法的具体详情如下:
包路径:io.advantageous.boon.core.Value
类名称:Value
方法名:toValue

Value.toValue介绍

暂无

代码示例

代码示例来源:origin: advantageous/qbit

newItemValue = ((Value) itemValue).toValue();
} else {
  newItemValue = itemValue;

代码示例来源:origin: advantageous/qbit

convertedValue = (V) ((Value) value).toValue();
} else {
  convertedValue = (V) value;

代码示例来源:origin: com.github.advantageous/boon-reflekt

private Object convert( Value value ) {
  return value.toValue();
}

代码示例来源:origin: io.advantageous.boon/boon-reflekt

private Object convert( Value value ) {
  return value.toValue();
}

代码示例来源:origin: io.advantageous.boon/boon-reflekt

private final void buildMap() {
  map = new LinkedHashMap<>( items.length );
  for ( Entry<String, Value> miv : items ) {
    if ( miv == null ) {
      break;
    }
    map.put( miv.getKey(), miv.getValue().toValue() );
  }
  len = 0;
  items = null;
}

代码示例来源:origin: io.advantageous.boon/boon-reflekt

@Override
public final void setFromValue( Object obj, Value value ) {
  setValue( obj, value.toValue() );
}

代码示例来源:origin: com.github.advantageous/boon-reflekt

@Override
public final void setFromValue( Object obj, Value value ) {
  setValue( obj, value.toValue() );
}

代码示例来源:origin: com.github.advantageous/boon-reflekt

private final void buildMap() {
  /** added to avoid hash collision attack. */
  if (Sys.is1_7OrLater() && althashingThreshold) {
    map = new HashMap<>( items.length );
  } else {
    map = new TreeMap<>();
  }
  for ( Entry<String, Value> miv : items ) {
    if ( miv == null ) {
      break;
    }
    map.put( miv.getKey(), miv.getValue().toValue() );
  }
  len = 0;
  items = null;
}

代码示例来源:origin: io.advantageous.boon/boon-reflekt

/**
 * Get the items for the key.
 * @param key key
 * @return value
 */
@Override
public Value get( Object key ) {
  /* If the length is under and we are asking for the key, then just look for the key. Don't build the map. */
  if ( map == null && items.length < 20 ) {
    for ( Object item : items ) {
      MapItemValue miv = ( MapItemValue ) item;
      if ( key.equals( miv.name.toValue() ) ) {
        return miv.value;
      }
    }
    return null;
  } else {
    if ( map == null ) buildIfNeededMap();
    return map.get( key );
  }
}

代码示例来源:origin: com.github.advantageous/boon-reflekt

/**
 * Get the items for the key.
 * @param key key
 * @return value
 */
@Override
public Value get( Object key ) {
  /* If the length is under and we are asking for the key, then just look for the key. Don't build the map. */
  if ( map == null && items.length < 20 ) {
    for ( Object item : items ) {
      MapItemValue miv = ( MapItemValue ) item;
      if ( key.equals( miv.name.toValue() ) ) {
        return miv.value;
      }
    }
    return null;
  } else {
    if ( map == null ) buildIfNeededMap();
    return map.get( key );
  }
}

代码示例来源:origin: com.github.advantageous/boon-json

public  Object parse( char[] chars ) {
    lastIndex = chars.length -1;
    __index = 0;
    charArray = chars;

    Value value = decodeValueOverlay(  );
    if (value.isContainer ()) {
      return value.toValue ();
    } else {
      return value;
    }
  }
}

代码示例来源:origin: com.github.advantageous/boon-reflekt

void chopContainer( Value value ) {
  Object obj = value.toValue();
  if ( obj instanceof LazyValueMap ) {
    LazyValueMap map = ( LazyValueMap ) obj;
    map.chopMap();
  } else if ( obj instanceof ValueList ) {
    ValueList list = ( ValueList ) obj;
    list.chopList();
  }
}

代码示例来源:origin: io.advantageous.boon/boon-json

public  Object parse( char[] chars ) {
    lastIndex = chars.length -1;
    __index = 0;
    charArray = chars;

    Value value = decodeValueOverlay(  );
    if (value.isContainer ()) {
      return value.toValue ();
    } else {
      return value;
    }
  }
}

代码示例来源:origin: io.advantageous.boon/boon-reflekt

void chopContainer( Value value ) {
  Object obj = value.toValue();
  if ( obj instanceof LazyValueMap ) {
    LazyValueMap map = ( LazyValueMap ) obj;
    map.chopMap();
  } else if ( obj instanceof ValueList ) {
    ValueList list = ( ValueList ) obj;
    list.chopList();
  }
}

代码示例来源:origin: io.advantageous.boon/boon-reflekt

private void chopContainer( Value value ) {
  Object obj = value.toValue();
  if ( obj instanceof LazyValueMap ) {
    LazyValueMap map = ( LazyValueMap ) obj;
    map.chopMap();
  } else if ( obj instanceof ValueList ) {
    ValueList list = ( ValueList ) obj;
    list.chopList();
  }
}

代码示例来源:origin: com.github.advantageous/boon-reflekt

private void chopContainer( Value value ) {
  Object obj = value.toValue();
  if ( obj instanceof LazyValueMap ) {
    LazyValueMap map = ( LazyValueMap ) obj;
    map.chopMap();
  } else if ( obj instanceof ValueList ) {
    ValueList list = ( ValueList ) obj;
    list.chopList();
  }
}

代码示例来源:origin: io.gatling.advantageous.boon/boon-json

public  Object parse( char[] chars ) {
    lastIndex = chars.length -1;
    __index = 0;
    charArray = chars;

    Value value = decodeValueOverlay(  );
    if (value.isContainer ()) {
      return value.toValue ();
    } else {
      return value;
    }
  }
}

代码示例来源:origin: com.github.advantageous/boon-json

@Override
public  Object parse( char[] chars ) {
  lastIndex = chars.length -1;
  try {
    __index = 0;
    charArray = chars;
    Value value = decodeValueInternal( true );
    if (value.isContainer ()) {
      return value.toValue ();
    } else {
      return value;
    }
  } catch (StopException stop) {
    return root;
  }
}

代码示例来源:origin: io.gatling.advantageous.boon/boon-json

@Override
public  Object parse( char[] chars ) {
  lastIndex = chars.length -1;
  try {
    __index = 0;
    charArray = chars;
    Value value = decodeValueInternal( true );
    if (value.isContainer ()) {
      return value.toValue ();
    } else {
      return value;
    }
  } catch (StopException stop) {
    return root;
  }
}

代码示例来源:origin: io.advantageous.boon/boon-json

@Override
public  Object parse( char[] chars ) {
  lastIndex = chars.length -1;
  try {
    __index = 0;
    charArray = chars;
    Value value = decodeValueInternal( true );
    if (value.isContainer ()) {
      return value.toValue ();
    } else {
      return value;
    }
  } catch (StopException stop) {
    return root;
  }
}

相关文章