List of usage examples for org.apache.commons.lang3 ArrayUtils EMPTY_CHAR_ARRAY
null EMPTY_CHAR_ARRAY
To view the source code for org.apache.commons.lang3 ArrayUtils EMPTY_CHAR_ARRAY.
Click Source Link
From source file:com.github.xbn.array.helper.NewPrimitiveArrayHelper.java
public char[] getEmptyPrimitive() { return ArrayUtils.EMPTY_CHAR_ARRAY; }
From source file:org.spongepowered.mod.mixin.core.text.MixinChatStyle.java
@Override public char[] asFormattingCode() { if (this.isEmpty()) { return this.parentStyle != null ? ((SpongeChatStyle) this.parentStyle).asFormattingCode() : ArrayUtils.EMPTY_CHAR_ARRAY; } else {//from w ww .j a v a2 s . co m char[] buf = new char[6]; int i = 0; EnumChatFormatting color = getColor(); if (color != null) { buf[i++] = color.formattingCode; } if (getBold()) { buf[i++] = EnumChatFormatting.BOLD.formattingCode; } if (getItalic()) { buf[i++] = EnumChatFormatting.ITALIC.formattingCode; } if (getUnderlined()) { buf[i++] = EnumChatFormatting.UNDERLINE.formattingCode; } if (getObfuscated()) { buf[i++] = EnumChatFormatting.STRIKETHROUGH.formattingCode; } if (getStrikethrough()) { buf[i++] = EnumChatFormatting.STRIKETHROUGH.formattingCode; } return i == buf.length ? buf : Arrays.copyOf(buf, i); } }
From source file:org.spongepowered.mod.mixin.core.text.MixinChatStyleRoot.java
@Override public char[] asFormattingCode() { return ArrayUtils.EMPTY_CHAR_ARRAY; }