@Override protected String getDiskFilename() { return getName() + postfix; }
@Override public int hashCode() { return getName().hashCode(); }
@Override public boolean equals(Object o) { if (!(o instanceof Attribute)) { return false; } Attribute attribute = (Attribute) o; return getName().equalsIgnoreCase(attribute.getName()); }
public int compareTo(Attribute o) { return getName().compareToIgnoreCase(o.getName()); }
@Override public Attribute replace(ByteBuf content) { DiskAttribute attr = new DiskAttribute(getName()); attr.setCharset(getCharset()); if (content != null) { try { attr.setContent(content); } catch (IOException e) { throw new ChannelException(e); } } return attr; }
@Override protected String getDiskFilename() { return getName() + postfix; }
@Override protected String getDiskFilename() { return getName() + postfix; }
@Override public int hashCode() { return getName().hashCode(); }
@Override public int hashCode() { return getName().hashCode(); }
@Override public boolean equals(Object o) { if (!(o instanceof Attribute)) { return false; } Attribute attribute = (Attribute) o; return getName().equalsIgnoreCase(attribute.getName()); }
@Override public boolean equals(Object o) { if (!(o instanceof Attribute)) { return false; } Attribute attribute = (Attribute) o; return getName().equalsIgnoreCase(attribute.getName()); }
public int compareTo(Attribute o) { return getName().compareToIgnoreCase(o.getName()); }
@Override public boolean equals(Object o) { if (!(o instanceof Attribute)) { return false; } Attribute attribute = (Attribute) o; return getName().equalsIgnoreCase(attribute.getName()); }
@Override public Attribute replace(ByteBuf content) { DiskAttribute attr = new DiskAttribute(getName()); attr.setCharset(getCharset()); if (content != null) { try { attr.setContent(content); } catch (IOException e) { throw new ChannelException(e); } } return attr; }
@Override public Attribute replace(ByteBuf content) { DiskAttribute attr = new DiskAttribute(getName()); attr.setCharset(getCharset()); if (content != null) { try { attr.setContent(content); } catch (IOException e) { throw new ChannelException(e); } } return attr; }