@Test public void testGetAsDictionary() { assertEquals(new Permission(777), new PermissionDictionary().deserialize(new Permission(777).serialize(SerializerFactory.get()))); assertEquals(new Permission(700), new PermissionDictionary().deserialize(new Permission(700).serialize(SerializerFactory.get()))); assertEquals(new Permission(400), new PermissionDictionary().deserialize(new Permission(400).serialize(SerializerFactory.get()))); }
@Override public <T> T serialize(final Serializer dict) { dict.setStringForKey(this.getSymbol(), "Mask"); return dict.getSerialized(); }
Permission implements Serializable { @Override public <T> T serialize(final Serializer dict) { dict.setStringForKey(this.getSymbol(), "Mask"); return dict.getSerialized(); } }
Permission implements Serializable { @Override public <T> T serialize(final Serializer dict) { dict.setStringForKey(this.getSymbol(), "Mask"); return dict.getSerialized(); } Permission();  Permission(final String mode);  Permission(final Action u, final Action g, final Action o);  Permission(final Action u, final Action g, final Action o,
                      final boolean stickybit, final boolean setuid, final boolean setgid);  Permission(final int mode);  Permission(final Permission other); }
Permission implements Serializable { @Override public <T> T serialize(final Serializer dict) { dict.setStringForKey(this.getSymbol(), "Mask"); return dict.getSerialized(); } Permission();  Permission(final String mode);  Permission(final Action u, final Action g, final Action o);  Permission(final Action u, final Action g, final Action o,
                      final boolean stickybit, final boolean setuid, final boolean setgid);  Permission(final int mode);  Permission(final Permission other); @Override T serialize(final Serializer dict); Action getUser(); void setUser(final Action user); Action getGroup(); void setGroup(final Action group); Action getOther(); void setOther(final Action other); boolean isSetuid(); void setSetuid(final boolean setuid); boolean isSetgid(); void setSetgid(final boolean setgid); boolean isSticky(); void setSticky(final boolean sticky); String getSymbol(); String getMode(); @Override String toString(); boolean isExecutable(); boolean isReadable(); boolean isWritable(); @Override boolean equals(final Object o); int hashCode(); }
Permission implements Serializable { @Override public <T> T serialize(final Serializer dict) { dict.setStringForKey(this.getSymbol(), "Mask"); return dict.getSerialized(); } Permission();  Permission(final String mode);  Permission(final Action u, final Action g, final Action o);  Permission(final Action u, final Action g, final Action o,
                      final boolean stickybit, final boolean setuid, final boolean setgid);  Permission(final int mode);  Permission(final Permission other); @Override T serialize(final Serializer dict); Action getUser(); void setUser(final Action user); Action getGroup(); void setGroup(final Action group); Action getOther(); void setOther(final Action other); boolean isSetuid(); void setSetuid(final boolean setuid); boolean isSetgid(); void setSetgid(final boolean setgid); boolean isSticky(); void setSticky(final boolean sticky); String getSymbol(); String getMode(); @Override String toString(); boolean isExecutable(); boolean isReadable(); boolean isWritable(); @Override boolean equals(final Object o); int hashCode(); static final Permission EMPTY; }