当前位置: 首页>>代码示例>>Java>>正文


Java VersionUtil类代码示例

本文整理汇总了Java中com.fasterxml.jackson.core.util.VersionUtil的典型用法代码示例。如果您正苦于以下问题:Java VersionUtil类的具体用法?Java VersionUtil怎么用?Java VersionUtil使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


VersionUtil类属于com.fasterxml.jackson.core.util包,在下文中一共展示了VersionUtil类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: _startAfterComment

import com.fasterxml.jackson.core.util.VersionUtil; //导入依赖的package包/类
private final JsonToken _startAfterComment(int fromMinorState) throws IOException
{
    // Ok, then, need one more character...
    if (_inputPtr >= _inputEnd) {
        _minorState = fromMinorState;
        return (_currToken = JsonToken.NOT_AVAILABLE);
    }
    int ch = _inputBuffer[_inputPtr++] & 0xFF;
    switch (fromMinorState) {
    case MINOR_FIELD_LEADING_WS:
        return _startFieldName(ch);
    case MINOR_FIELD_LEADING_COMMA:
        return _startFieldNameAfterComma(ch);
    case MINOR_VALUE_LEADING_WS:
        return _startValue(ch);
    case MINOR_VALUE_EXPECTING_COMMA:
        return _startValueExpectComma(ch);
    case MINOR_VALUE_EXPECTING_COLON:
        return _startValueExpectColon(ch);
    case MINOR_VALUE_WS_AFTER_COMMA:
        return _startValueAfterComma(ch);
    default:
    }
    VersionUtil.throwInternal();
    return null;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:27,代码来源:NonBlockingJsonParser.java

示例2: VertxJsonModule

import com.fasterxml.jackson.core.util.VersionUtil; //导入依赖的package包/类
/**
 * Creates a new module.
 *
 * @since 1.1.0
 */
public VertxJsonModule() {
  super(NAME, VersionUtil.parseVersion("1.1.0", "org.jspare.vertx", "jackson-datatype-vertx"));
  addDeserializer(JsonArray.class, JsonArrayDeserializer.INSTANCE);
  addDeserializer(JsonObject.class, JsonObjectDeserializer.INSTANCE);
  addSerializer(JsonArraySerializer.INSTANCE);
  addSerializer(JsonObjectSerializer.INSTANCE);
}
 
开发者ID:jspare-projects,项目名称:vertx-jspare,代码行数:13,代码来源:VertxJsonModule.java

示例3: VertxJsonModule

import com.fasterxml.jackson.core.util.VersionUtil; //导入依赖的package包/类
/**
 * Creates a new module.
 *
 * @since 2.1
 */
public VertxJsonModule() {
    super(NAME, VersionUtil.parseVersion("2.1-SNAPSHOT", "de.crunc", "jackson-datatype-vertx"));
    addDeserializer(JsonArray.class, JsonArrayDeserializer.INSTANCE);
    addDeserializer(JsonObject.class, JsonObjectDeserializer.INSTANCE);
    addSerializer(JsonArraySerializer.INSTANCE);
    addSerializer(JsonObjectSerializer.INSTANCE);
}
 
开发者ID:Crunc,项目名称:jackson-datatype-vertx,代码行数:13,代码来源:VertxJsonModule.java

示例4: updateTopology

import com.fasterxml.jackson.core.util.VersionUtil; //导入依赖的package包/类
private void updateTopology(String oldVersion) {
   Version v = Version.unknownVersion();
    if (oldVersion!=null){
 	v=VersionUtil.parseVersion(oldVersion, null,null);
 }
    if (v.isUnknownVersion() || v.compareTo(new Version(1,5,0,null,null,null))<0){
    	 if (this.sqlDialect.supportsDeferrableForeignKey()) {
             upgradeForeignKeysToDeferrable();
         }
    }
}
 
开发者ID:pietermartin,项目名称:sqlg,代码行数:12,代码来源:SqlgStartupManager.java

示例5: _throwInternal

import com.fasterxml.jackson.core.util.VersionUtil; //导入依赖的package包/类
protected final void _throwInternal() {
    VersionUtil.throwInternal();
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:4,代码来源:ParserMinimalBase.java

示例6: version

import com.fasterxml.jackson.core.util.VersionUtil; //导入依赖的package包/类
@Override
public Version version() {
    return VersionUtil.versionFor(getClass());
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:5,代码来源:JsonGeneratorImpl.java

示例7: _decodeEscaped

import com.fasterxml.jackson.core.util.VersionUtil; //导入依赖的package包/类
@Override
protected char _decodeEscaped() throws IOException {
    VersionUtil.throwInternal();
    return ' ';
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:6,代码来源:NonBlockingJsonParser.java

示例8: nextToken

import com.fasterxml.jackson.core.util.VersionUtil; //导入依赖的package包/类
@Override
public JsonToken nextToken() throws IOException
{
    // First: regardless of where we really are, need at least one more byte;
    // can simplify some of the checks by short-circuiting right away
    if (_inputPtr >= _inputEnd) {
        if (_closed) {
            return null;
        }
        // note: if so, do not even bother changing state
        if (_endOfInput) { // except for this special case
            // End-of-input within (possibly...) started token is bit complicated,
            // so offline
            if (_currToken == JsonToken.NOT_AVAILABLE) {
                return _finishTokenWithEOF();
            }
            return _eofAsNextToken();
        }
        return JsonToken.NOT_AVAILABLE;
    }
    // in the middle of tokenization?
    if (_currToken == JsonToken.NOT_AVAILABLE) {
        return _finishToken();
    }

    // No: fresh new token; may or may not have existing one
    _numTypesValid = NR_UNKNOWN;
    _tokenInputTotal = _currInputProcessed + _inputPtr;
    // also: clear any data retained so far
    _binaryValue = null;
    int ch = _inputBuffer[_inputPtr++] & 0xFF;

    switch (_majorState) {
    case MAJOR_INITIAL:
        return _startDocument(ch);

    case MAJOR_ROOT:
        return _startValue(ch);

    case MAJOR_OBJECT_FIELD_FIRST: // expect field-name or end-object
        return _startFieldName(ch);
    case MAJOR_OBJECT_FIELD_NEXT: // expect comma + field-name or end-object
        return _startFieldNameAfterComma(ch);

    case MAJOR_OBJECT_VALUE: // expect colon, followed by value
        return _startValueExpectColon(ch);

    case MAJOR_ARRAY_ELEMENT_FIRST: // expect value or end-array
        return _startValue(ch);

    case MAJOR_ARRAY_ELEMENT_NEXT: // expect leading comma + value or end-array
        return _startValueExpectComma(ch);

    default:
    }
    VersionUtil.throwInternal();
    return null;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:59,代码来源:NonBlockingJsonParser.java

示例9: version

import com.fasterxml.jackson.core.util.VersionUtil; //导入依赖的package包/类
@Override
public Version version() {
    return VersionUtil.parseVersion("1.0", "com.bazaarvoice.emodb.common.json", "lazy-json");
}
 
开发者ID:bazaarvoice,项目名称:emodb,代码行数:5,代码来源:LazyJsonModule.java

示例10: version

import com.fasterxml.jackson.core.util.VersionUtil; //导入依赖的package包/类
@Override
@SuppressWarnings("deprecation")
public Version version() {
    final ClassLoader loader = UnknownPropertyModule.class.getClassLoader();
    return VersionUtil.mavenVersionFor(loader, "org.zalando", "jackson-module-unknown-property");
}
 
开发者ID:whiskeysierra,项目名称:jackson-module-unknown-property,代码行数:7,代码来源:UnknownPropertyModule.java

示例11: version

import com.fasterxml.jackson.core.util.VersionUtil; //导入依赖的package包/类
@Override
public Version version() {
	return VersionUtil.versionFor(JacksonElasticSearchModule.class);
}
 
开发者ID:aureliano,项目名称:evt-bridge,代码行数:5,代码来源:JacksonElasticSearchModule.java

示例12: version

import com.fasterxml.jackson.core.util.VersionUtil; //导入依赖的package包/类
@Override
@SuppressWarnings("deprecation")
public Version version() {
    return VersionUtil.mavenVersionFor(ConstraintViolationProblemModule.class.getClassLoader(),
            "org.zalando", "problem-spring-web");
}
 
开发者ID:zalando,项目名称:problem-spring-web,代码行数:7,代码来源:ConstraintViolationProblemModule.java

示例13: version

import com.fasterxml.jackson.core.util.VersionUtil; //导入依赖的package包/类
@Override
@SuppressWarnings("deprecation")
public Version version() {
    final ClassLoader loader = MoneyModule.class.getClassLoader();
    return VersionUtil.mavenVersionFor(loader, "org.zalando", "jackson-datatype-money");
}
 
开发者ID:zalando,项目名称:jackson-datatype-money,代码行数:7,代码来源:MoneyModule.java

示例14: version

import com.fasterxml.jackson.core.util.VersionUtil; //导入依赖的package包/类
@SuppressWarnings("deprecation")
@Override
public Version version() {
    return VersionUtil.mavenVersionFor(ProblemModule.class.getClassLoader(),
            "org.zalando", "jackson-datatype-problem");
}
 
开发者ID:zalando,项目名称:problem,代码行数:7,代码来源:ProblemModule.java

示例15: _throwInternal

import com.fasterxml.jackson.core.util.VersionUtil; //导入依赖的package包/类
public final void _throwInternal()
{
  VersionUtil.throwInternal();
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:5,代码来源:GeneratorBase.java


注:本文中的com.fasterxml.jackson.core.util.VersionUtil类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。