本文整理了Java中net.digitalid.utility.circumfixes.Quotes.inCode
方法的一些代码示例,展示了Quotes.inCode
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Quotes.inCode
方法的具体详情如下:
包路径:net.digitalid.utility.circumfixes.Quotes
类名称:Quotes
方法名:inCode
[英]Returns the given object in double quotes if it is an instance of CharSequence or without quotes otherwise.
[中]如果给定对象是CharSequence的实例,则以双引号返回该对象,否则不带引号。
代码示例来源:origin: net.digitalid.utility/utility-logging
@Pure
@Override
public @Nonnull String toString() {
return "LoggingRule(threshold: " + threshold + ", callerPrefix: " + Quotes.inCode(callerPrefix) + ", threadPrefix: " + Quotes.inCode(threadPrefix) + ", messageRegex: " + Quotes.inCode(messageRegex) + ")";
}
代码示例来源:origin: net.digitalid.utility/utility-tuples
/**
* Returns this tuple as a string without parentheses.
*/
@Pure
public @Nonnull String toStringWithoutParentheses() {
return Quotes.inCode(element0) + ", " + Quotes.inCode(element1);
}
代码示例来源:origin: net.digitalid.utility/utility-tuples
@Pure
@Override
public @Nonnull String toStringWithoutParentheses() {
return super.toStringWithoutParentheses() + ", " + Quotes.inCode(element5);
}
代码示例来源:origin: net.digitalid.utility/utility-tuples
@Pure
@Override
public @Nonnull String toStringWithoutParentheses() {
return super.toStringWithoutParentheses() + ", " + Quotes.inCode(element2);
}
代码示例来源:origin: net.digitalid.utility/utility-tuples
@Pure
@Override
public @Nonnull String toStringWithoutParentheses() {
return super.toStringWithoutParentheses() + ", " + Quotes.inCode(element3);
}
代码示例来源:origin: net.digitalid.utility/utility-tuples
@Pure
@Override
public @Nonnull String toStringWithoutParentheses() {
return super.toStringWithoutParentheses() + ", " + Quotes.inCode(element7);
}
代码示例来源:origin: net.digitalid.utility/utility-tuples
@Pure
@Override
public @Nonnull String toStringWithoutParentheses() {
return super.toStringWithoutParentheses() + ", " + Quotes.inCode(element4);
}
代码示例来源:origin: net.digitalid.utility/utility-tuples
@Pure
@Override
public @Nonnull String toStringWithoutParentheses() {
return super.toStringWithoutParentheses() + ", " + Quotes.inCode(element6);
}
代码示例来源:origin: net.digitalid.utility/utility-string
/**
* Returns a string representation of the given object.
*/
@Pure
public static @Nonnull String toString(@NonCaptured @Unmodified @Nullable Object object) {
if (object == null) { return "null"; }
else { return object.getClass().getSimpleName() + FiniteIterable.of(object.getClass().getDeclaredFields()).filterNot(field -> field.getName().startsWith("$")).map(field -> field.getName() + ": " + Quotes.inCode(getFieldValueOrErrorMessage(field, object))).join(Brackets.ROUND); }
}
内容来源于网络,如有侵权,请联系作者删除!