Package org.cryptomator.cryptofs.attr
Enum AttributeViewType
- java.lang.Object
-
- java.lang.Enum<AttributeViewType>
-
- org.cryptomator.cryptofs.attr.AttributeViewType
-
- All Implemented Interfaces:
Serializable,Comparable<AttributeViewType>
public enum AttributeViewType extends Enum<AttributeViewType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Optional<AttributeViewType>getByName(String viewName)static Optional<AttributeViewType>getByType(Class<? extends FileAttributeView> type)Class<? extends FileAttributeView>getType()StringgetViewName()static AttributeViewTypevalueOf(String name)Returns the enum constant of this type with the specified name.static AttributeViewType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BASIC
public static final AttributeViewType BASIC
-
OWNER
public static final AttributeViewType OWNER
-
POSIX
public static final AttributeViewType POSIX
-
DOS
public static final AttributeViewType DOS
-
-
Method Detail
-
values
public static AttributeViewType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AttributeViewType c : AttributeViewType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AttributeViewType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getType
public Class<? extends FileAttributeView> getType()
- Returns:
- The class of the AttributeView
-
getByType
public static Optional<AttributeViewType> getByType(Class<? extends FileAttributeView> type)
-
getByName
public static Optional<AttributeViewType> getByName(String viewName)
-
-