Package io.prestosql.sql.tree
Class GrantorSpecification
- java.lang.Object
-
- io.prestosql.sql.tree.GrantorSpecification
-
public class GrantorSpecification extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGrantorSpecification.Type
-
Constructor Summary
Constructors Constructor Description GrantorSpecification(GrantorSpecification.Type type, java.util.Optional<PrincipalSpecification> principal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.util.Optional<PrincipalSpecification>getPrincipal()GrantorSpecification.TypegetType()inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
GrantorSpecification
public GrantorSpecification(GrantorSpecification.Type type, java.util.Optional<PrincipalSpecification> principal)
-
-
Method Detail
-
getType
public GrantorSpecification.Type getType()
-
getPrincipal
public java.util.Optional<PrincipalSpecification> getPrincipal()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-