Class OrientationParser


  • public class OrientationParser
    extends java.lang.Object
    Utility class to parse orientation names.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Orientation parseOrientation​(@NotNull java.lang.String name)
      Converts an orientation name into an Orientation instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • parseOrientation

        public static Orientation parseOrientation​(@NotNull
                                                   @NotNull java.lang.String name)
        Converts an orientation name into an Orientation instance. Each parsing creates a new instance.
        Parameters:
        name - the orientation name
        Returns:
        the orientation instance
        Throws:
        java.lang.IllegalArgumentException - if the orientation name is undefined