Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.javaswift.joss.information;
 
 
 public class ContainerInformation extends AbstractInformation {
    private ContainerBytesUsed bytesUsed;
    
    public ContainerInformation() {
        this. = new ContainerRights(false);
    }
    public int getObjectCount() {
        return Integer.parseInt(.getHeaderValue());
    }
    public void setObjectCount(ContainerObjectCount objectCount) {
        this. = objectCount;
    }
    public long getBytesUsed() {
        return Long.parseLong(.getHeaderValue());
    }
    public void setBytesUsed(ContainerBytesUsed bytesUsed) {
        this. = bytesUsed;
    }
    public boolean isPublicContainer() {
        return .isPublic();
    }
    public void setPublicContainer(boolean publicContainer) {
        setPublicContainer(new ContainerRights(publicContainer));
    }
    public void setPublicContainer(ContainerRights containerRights) {
        this. = containerRights;
    }
    public String getReadPermissions() {
        return .getHeaderValue();
    }
    public void setReadPermissions(String readPermissions) {
        setReadPermissions(new ContainerReadPermissions(readPermissions));
    }
    
    public void setReadPermissions(ContainerReadPermissions readPermissions) {
        this. = readPermissions;
    }
    public String getWritePermissions() {
        return .getHeaderValue();
    }
    public void setWritePermissions(String writePermissions) {
        setWritePermissions(new ContainerWritePermissions(writePermissions));
    }
    
    public void setWritePermissions(ContainerWritePermissions writePermissions) {
        this. = writePermissions;
    }
New to GrepCode? Check out our FAQ X