com.alibaba.citrus.util.Assert.unsupportedOperation()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(122)

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

Assert.unsupportedOperation介绍

[英]不支持的操作。
[中]不支持的操作。

代码示例

代码示例来源:origin: webx/citrus

/** 不支持的操作。 */
public static <T> T unsupportedOperation() {
  unsupportedOperation(null, (Object[]) null);
  return null;
}

代码示例来源:origin: webx/citrus

/** 不支持的操作。 */
public static <T> T unsupportedOperation() {
  unsupportedOperation(null, (Object[]) null);
  return null;
}

代码示例来源:origin: webx/citrus

public String[] setValue(String[] value) {
    unsupportedOperation();
    return null;
  }
}

代码示例来源:origin: webx/citrus

/** 不支持的操作。 */
public static <T> T unsupportedOperation() {
  unsupportedOperation(null, (Object[]) null);
  return null;
}

代码示例来源:origin: webx/citrus

public String[] setValue(String[] value) {
    unsupportedOperation();
    return null;
  }
}

代码示例来源:origin: webx/citrus

public WebxController getWebxController() {
  unsupportedOperation("RootComponent.getWebxController()");
  return null;
}

代码示例来源:origin: webx/citrus

public final void remove() {
    unsupportedOperation("remove");
  }
};

代码示例来源:origin: webx/citrus

public void remove() {
    unsupportedOperation("remove()");
  }
};

代码示例来源:origin: webx/citrus

public final void remove() {
    unsupportedOperation("remove");
  }
};

代码示例来源:origin: webx/citrus

public final void remove() {
    unsupportedOperation("remove");
  }
};

代码示例来源:origin: webx/citrus

protected void add(String key, String value) {
  unsupportedOperation("You should extend class " + getClass().getSimpleName()
             + " and override method add(String, String)");
}

代码示例来源:origin: webx/citrus

protected void add(String key, String value) {
  unsupportedOperation("You should extend class " + getClass().getSimpleName()
             + " and override method add(String, String)");
}

代码示例来源:origin: webx/citrus

@Override
  public CharsetEncoder newEncoder() {
    unsupportedOperation("Could not create encoder for unknown charset: " + name());
    return null;
  }
}

代码示例来源:origin: webx/citrus

@Override
public CharsetDecoder newDecoder() {
  unsupportedOperation("Could not create decoder for unknown charset: " + name());
  return null;
}

代码示例来源:origin: webx/citrus

@Override
  public CharsetEncoder newEncoder() {
    unsupportedOperation("Could not create encoder for unknown charset: " + name());
    return null;
  }
}

代码示例来源:origin: webx/citrus

@Override
public CharsetDecoder newDecoder() {
  unsupportedOperation("Could not create decoder for unknown charset: " + name());
  return null;
}

代码示例来源:origin: webx/citrus

@Override
  public CharsetEncoder newEncoder() {
    unsupportedOperation("Could not create encoder for unknown charset: " + name());
    return null;
  }
}

代码示例来源:origin: webx/citrus

@Override
public CharsetDecoder newDecoder() {
  unsupportedOperation("Could not create decoder for unknown charset: " + name());
  return null;
}

代码示例来源:origin: webx/citrus

@Override
public Resource createRelative(String relativePath) throws IOException {
  if (loader == null) {
    unsupportedOperation("no ResourceLoadingSupport");
    return null;
  }
  String pathToUse = StringUtils.applyRelativePath(location, relativePath);
  return loader.getResourceByPath(pathToUse);
}

代码示例来源:origin: webx/citrus

@Override
public Resource createRelative(String relativePath) throws IOException {
  if (loader == null) {
    unsupportedOperation("no ResourceLoadingSupport");
    return null;
  }
  String pathToUse = StringUtils.applyRelativePath(location, relativePath);
  return loader.getResourceByPath(pathToUse);
}

相关文章