All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hazelcast.shaded.org.locationtech.jts.io.Ordinate Maven / Gradle / Ivy

There is a newer version: 5.5.0
Show newest version
/*
 * Copyright (c) 2018 Felix Obermaier
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * and Eclipse Distribution License v. 1.0 which accompanies this distribution.
 * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v20.html
 * and the Eclipse Distribution License is available at
 *
 * http://www.eclipse.org/org/documents/edl-v10.php.
 */

package com.hazelcast.shaded.org.locationtech.jts.io;

import java.util.EnumSet;

/**
 * An enumeration of possible Well-Known-Text or Well-Known-Binary ordinates.
 * 

* Intended to be used as an {@code EnumSet}, optimized create methods have been provided for {@link #createXY()}, {@link #createXYM()}, {@link #createXYZ()} and {@link #createXYZM()}. */ public enum Ordinate { /** * X-ordinate */ X, /** * Y-ordinate */ Y, /** * Z-ordinate */ Z, /** * Measure-ordinate */ M; private static final EnumSet XY = EnumSet.of(X, Y); private static final EnumSet XYZ = EnumSet.of(X, Y, Z); private static final EnumSet XYM = EnumSet.of(X, Y, M); private static final EnumSet XYZM = EnumSet.of(X, Y, Z, M); /** * EnumSet of X and Y ordinates, a copy is returned as EnumSets are not immutable. * @return EnumSet of X and Y ordinates. */ public static EnumSet createXY() { return XY.clone(); } /** * EnumSet of XYZ ordinates, a copy is returned as EnumSets are not immutable. * @return EnumSet of X and Y ordinates. */ public static EnumSet createXYZ() { return XYZ.clone(); } /** * EnumSet of XYM ordinates, a copy is returned as EnumSets are not immutable. * @return EnumSet of X and Y ordinates. */ public static EnumSet createXYM() { return XYM.clone(); } /** * EnumSet of XYZM ordinates, a copy is returned as EnumSets are not immutable. * @return EnumSet of X and Y ordinates. */ public static EnumSet createXYZM() { return XYZM.clone(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy