com.linecorp.centraldogma.internal.Util.simpleTypeName()方法的使用及代码示例

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

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

Util.simpleTypeName介绍

[英]Returns the simplified name of the specified type.
[中]返回指定类型的简化名称。

代码示例

代码示例来源:origin: line/centraldogma

  1. /**
  2. * Returns the simplified name of the specified type.
  3. */
  4. public static String simpleTypeName(Class<?> clazz) {
  5. return simpleTypeName(clazz, false);
  6. }

代码示例来源:origin: com.linecorp.centraldogma/centraldogma-server-shaded

  1. FindOption(String name, T defaultValue) {
  2. this.name = name;
  3. this.defaultValue = defaultValue;
  4. fullName = Util.simpleTypeName(FindOption.class) + '.' + name;
  5. }

代码示例来源:origin: line/centraldogma

  1. FindOption(String name, T defaultValue) {
  2. this.name = name;
  3. this.defaultValue = defaultValue;
  4. fullName = Util.simpleTypeName(FindOption.class) + '.' + name;
  5. }

代码示例来源:origin: com.linecorp.centraldogma/centraldogma-common

  1. /**
  2. * Returns the simplified name of the specified type.
  3. */
  4. public static String simpleTypeName(Class<?> clazz) {
  5. return simpleTypeName(clazz, false);
  6. }

代码示例来源:origin: com.linecorp.centraldogma/centraldogma-common-shaded

  1. /**
  2. * Returns the simplified name of the specified type.
  3. */
  4. public static String simpleTypeName(Class<?> clazz) {
  5. return simpleTypeName(clazz, false);
  6. }

代码示例来源:origin: com.linecorp.centraldogma/centraldogma-common

  1. /**
  2. * Returns the simplified name of the type of the specified object.
  3. */
  4. public static String simpleTypeName(Object obj) {
  5. if (obj == null) {
  6. return "null";
  7. }
  8. return simpleTypeName(obj.getClass(), false);
  9. }

代码示例来源:origin: com.linecorp.centraldogma/centraldogma-server-shaded

  1. @Override
  2. public String toString() {
  3. return Util.simpleTypeName(getClass()) + '(' + repos + ')';
  4. }
  5. }

代码示例来源:origin: line/centraldogma

  1. @Override
  2. public String toString() {
  3. return Util.simpleTypeName(getClass()) + '(' + rootDir + ')';
  4. }
  5. }

代码示例来源:origin: line/centraldogma

  1. /**
  2. * Returns the simplified name of the type of the specified object.
  3. */
  4. public static String simpleTypeName(Object obj) {
  5. if (obj == null) {
  6. return "null";
  7. }
  8. return simpleTypeName(obj.getClass(), false);
  9. }

代码示例来源:origin: com.linecorp.centraldogma/centraldogma-server

  1. @Override
  2. public String toString() {
  3. return Util.simpleTypeName(getClass()) + '(' + rootDir + ')';
  4. }
  5. }

代码示例来源:origin: com.linecorp.centraldogma/centraldogma-server

  1. @Override
  2. public String toString() {
  3. return Util.simpleTypeName(getClass()) + '(' + repos + ')';
  4. }
  5. }

代码示例来源:origin: line/centraldogma

  1. @Override
  2. public String toString() {
  3. return Util.simpleTypeName(getClass()) + '(' + repos + ')';
  4. }
  5. }

代码示例来源:origin: line/centraldogma

  1. @Override
  2. public String toString() {
  3. final StringBuilder buf = new StringBuilder();
  4. buf.append(Util.simpleTypeName(this));
  5. buf.append('(');
  6. buf.append(major);
  7. buf.append(')');
  8. return buf.toString();
  9. }

代码示例来源:origin: line/centraldogma

  1. @Override
  2. public String toString() {
  3. final StringBuilder buf = new StringBuilder();
  4. buf.append(Util.simpleTypeName(this));
  5. buf.append("[\"");
  6. buf.append(name);
  7. buf.append("\" <");
  8. buf.append(email);
  9. buf.append(">]");
  10. return buf.toString();
  11. }
  12. }

代码示例来源:origin: com.linecorp.centraldogma/centraldogma-common-shaded

  1. @Override
  2. public String toString() {
  3. final StringBuilder buf = new StringBuilder();
  4. buf.append(Util.simpleTypeName(this));
  5. buf.append('(');
  6. buf.append(major);
  7. buf.append(')');
  8. return buf.toString();
  9. }

代码示例来源:origin: com.linecorp.centraldogma/centraldogma-common

  1. @Override
  2. public String toString() {
  3. final StringBuilder buf = new StringBuilder();
  4. buf.append(Util.simpleTypeName(this));
  5. buf.append("[\"");
  6. buf.append(name);
  7. buf.append("\" <");
  8. buf.append(email);
  9. buf.append(">]");
  10. return buf.toString();
  11. }
  12. }

代码示例来源:origin: com.linecorp.centraldogma/centraldogma-common

  1. @Override
  2. public String toString() {
  3. final StringBuilder buf = new StringBuilder();
  4. buf.append(Util.simpleTypeName(this));
  5. buf.append('(');
  6. buf.append(major);
  7. buf.append(')');
  8. return buf.toString();
  9. }

代码示例来源:origin: com.linecorp.centraldogma/centraldogma-server-shaded

  1. @Override
  2. public String toString() {
  3. return Util.simpleTypeName(this) + '(' + unwrap() + ')';
  4. }
  5. }

代码示例来源:origin: line/centraldogma

  1. @Override
  2. public String toString() {
  3. return Util.simpleTypeName(this) + '(' + unwrap() + ')';
  4. }
  5. }

代码示例来源:origin: com.linecorp.centraldogma/centraldogma-server

  1. @Override
  2. public String toString() {
  3. return Util.simpleTypeName(this) + '(' + unwrap() + ')';
  4. }
  5. }

相关文章