11adf3a94fce500e0bda933e4b495a004d5789bd7Andrey Somov/**
211a89b445f3bde56bf07e6a0d04f0b0256dcb215Andrey Somov * Copyright (c) 2008, http://www.snakeyaml.org
31adf3a94fce500e0bda933e4b495a004d5789bd7Andrey Somov *
41adf3a94fce500e0bda933e4b495a004d5789bd7Andrey Somov * Licensed under the Apache License, Version 2.0 (the "License");
51adf3a94fce500e0bda933e4b495a004d5789bd7Andrey Somov * you may not use this file except in compliance with the License.
61adf3a94fce500e0bda933e4b495a004d5789bd7Andrey Somov * You may obtain a copy of the License at
71adf3a94fce500e0bda933e4b495a004d5789bd7Andrey Somov *
81adf3a94fce500e0bda933e4b495a004d5789bd7Andrey Somov *     http://www.apache.org/licenses/LICENSE-2.0
91adf3a94fce500e0bda933e4b495a004d5789bd7Andrey Somov *
101adf3a94fce500e0bda933e4b495a004d5789bd7Andrey Somov * Unless required by applicable law or agreed to in writing, software
111adf3a94fce500e0bda933e4b495a004d5789bd7Andrey Somov * distributed under the License is distributed on an "AS IS" BASIS,
121adf3a94fce500e0bda933e4b495a004d5789bd7Andrey Somov * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
131adf3a94fce500e0bda933e4b495a004d5789bd7Andrey Somov * See the License for the specific language governing permissions and
141adf3a94fce500e0bda933e4b495a004d5789bd7Andrey Somov * limitations under the License.
15ca2b4b3ee7101957d97334631216f6b52b030c1bAndrey Somov */
16ca2b4b3ee7101957d97334631216f6b52b030c1bAndrey Somovpackage org.yaml.snakeyaml.immutable;
17ca2b4b3ee7101957d97334631216f6b52b030c1bAndrey Somov
18ca2b4b3ee7101957d97334631216f6b52b030c1bAndrey Somovpublic class Point3d {
19ca2b4b3ee7101957d97334631216f6b52b030c1bAndrey Somov    private final double z;
20ca2b4b3ee7101957d97334631216f6b52b030c1bAndrey Somov    private final Point point;
21ca2b4b3ee7101957d97334631216f6b52b030c1bAndrey Somov
22ca2b4b3ee7101957d97334631216f6b52b030c1bAndrey Somov    public Point3d(Point point, Double z) {
23ca2b4b3ee7101957d97334631216f6b52b030c1bAndrey Somov        this.point = point;
24ca2b4b3ee7101957d97334631216f6b52b030c1bAndrey Somov        this.z = z;
25ca2b4b3ee7101957d97334631216f6b52b030c1bAndrey Somov    }
26ca2b4b3ee7101957d97334631216f6b52b030c1bAndrey Somov
27ca2b4b3ee7101957d97334631216f6b52b030c1bAndrey Somov    public double getZ() {
28ca2b4b3ee7101957d97334631216f6b52b030c1bAndrey Somov        return z;
29ca2b4b3ee7101957d97334631216f6b52b030c1bAndrey Somov    }
30ca2b4b3ee7101957d97334631216f6b52b030c1bAndrey Somov
31ca2b4b3ee7101957d97334631216f6b52b030c1bAndrey Somov    public Point getPoint() {
32ca2b4b3ee7101957d97334631216f6b52b030c1bAndrey Somov        return point;
33ca2b4b3ee7101957d97334631216f6b52b030c1bAndrey Somov    }
34050c422c295a0ff956f79ba91c4c5a21b255f721Andrey Somov
35050c422c295a0ff956f79ba91c4c5a21b255f721Andrey Somov    @Override
36050c422c295a0ff956f79ba91c4c5a21b255f721Andrey Somov    public String toString() {
37050c422c295a0ff956f79ba91c4c5a21b255f721Andrey Somov        return "<Point3d point=" + point.toString() + " z=" + String.valueOf(z) + ">";
38050c422c295a0ff956f79ba91c4c5a21b255f721Andrey Somov    }
39ca2b4b3ee7101957d97334631216f6b52b030c1bAndrey Somov}
40