public class AccessRights extends Object
Modifier and Type | Field and Description |
---|---|
static AccessRights |
both
A read and write AccessRights
|
static short |
BOTH
The type that indicates both read and write access
|
static AccessRights |
read
A read-only AccessRights
|
static short |
READ
The type that indicates only read access
|
static AccessRights |
write
A write-only AccessRights
|
static short |
WRITE
The type that indicates only write access
|
Modifier and Type | Method and Description |
---|---|
short |
getType()
Returns the type of this Access
|
boolean |
isReadable()
Returns true if this AccessRights allows reading
|
boolean |
isWritable()
Returns true if this AccessRights allows writing
|
public static final short BOTH
public static final short READ
public static final short WRITE
public static final AccessRights both
public static final AccessRights read
public static final AccessRights write
public short getType()
public boolean isReadable()
public boolean isWritable()
Copyright © 2021. All rights reserved.