PlotSquared/Core/src/main/java/com/plotsquared/core/plot/PlotId.java

316 lines
8.6 KiB
Java
Raw Normal View History

/*
* PlotSquared, a land and world management plugin for Minecraft.
* Copyright (C) IntellectualSites <https://intellectualsites.com>
* Copyright (C) IntellectualSites team and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
2020-04-15 21:26:54 +02:00
package com.plotsquared.core.plot;
2014-09-22 13:02:14 +02:00
2020-04-15 21:26:54 +02:00
import com.plotsquared.core.location.Direction;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
2020-07-17 17:24:45 +02:00
import java.util.Iterator;
2020-12-05 17:29:01 +01:00
import java.util.NoSuchElementException;
2018-06-07 00:15:28 +02:00
2020-07-18 11:05:16 +02:00
/**
* Plot (X,Y) tuples for plot locations
* within a plot area
*/
2020-07-23 14:11:34 +02:00
public final class PlotId {
2020-04-11 02:19:18 +02:00
2020-07-18 11:05:16 +02:00
private final int x;
private final int y;
private final int hash;
2018-08-10 17:01:10 +02:00
2014-11-05 04:42:08 +01:00
/**
* PlotId class (PlotId x,y values do not correspond to Block locations)
*
2014-12-18 03:15:11 +01:00
* @param x The plot x coordinate
* @param y The plot y coordinate
2014-11-05 04:42:08 +01:00
*/
2020-07-23 14:11:34 +02:00
private PlotId(final int x, final int y) {
2014-11-05 04:42:08 +01:00
this.x = x;
this.y = y;
2020-07-18 11:05:16 +02:00
this.hash = (this.getX() << 16) | (this.getY() & 0xFFFF);
}
/**
* Create a new plot ID instance
*
* @param x The plot x coordinate
* @param y The plot y coordinate
* @return a new PlotId at x,y
2020-07-18 11:05:16 +02:00
*/
2021-01-10 00:01:48 +01:00
public static @NonNull PlotId of(final int x, final int y) {
2020-07-23 14:11:34 +02:00
return new PlotId(x, y);
2014-11-05 04:42:08 +01:00
}
2018-08-10 17:01:10 +02:00
2014-11-16 10:48:18 +01:00
/**
* Get a Plot Id based on a string
*
* @param string to create id from
2020-07-23 14:11:34 +02:00
* @return the PlotId representation of the argument
* @throws IllegalArgumentException if the string does not contain a valid PlotId
2014-11-16 10:48:18 +01:00
*/
2021-01-10 00:01:48 +01:00
public static @NonNull PlotId fromString(final @NonNull String string) {
2020-07-23 14:11:34 +02:00
final PlotId plot = fromStringOrNull(string);
if (plot == null) {
2019-04-24 00:48:22 +02:00
throw new IllegalArgumentException("Cannot create PlotID. String invalid.");
2020-07-23 14:11:34 +02:00
}
return plot;
}
2020-07-18 11:05:16 +02:00
/**
* Attempt to parse a plot ID from a string
*
* @param string ID string
* @return Plot ID, or {@code null} if none could be parsed
*/
2021-01-10 00:01:48 +01:00
public static @Nullable PlotId fromStringOrNull(final @NonNull String string) {
2021-01-07 22:24:38 +01:00
final String[] parts = string.split("[;_,.]");
2015-09-13 06:04:31 +02:00
if (parts.length < 2) {
return null;
}
int x;
int y;
try {
x = Integer.parseInt(parts[0]);
y = Integer.parseInt(parts[1]);
2020-07-23 14:11:34 +02:00
} catch (final NumberFormatException ignored) {
return null;
2014-11-16 10:48:18 +01:00
}
2020-07-18 11:05:16 +02:00
return of(x, y);
2018-08-10 17:01:10 +02:00
}
/**
* Gets the PlotId from the HashCode<br>
2018-08-10 17:01:10 +02:00
* Note: Only accurate for small x,z values (short)
*
2020-07-18 11:05:16 +02:00
* @param hash ID hash
* @return Plot ID
2018-08-10 17:01:10 +02:00
*/
2021-01-10 00:01:48 +01:00
public static @NonNull PlotId unpair(final int hash) {
2020-07-18 11:05:16 +02:00
return PlotId.of(hash >> 16, hash & 0xFFFF);
2018-08-10 17:01:10 +02:00
}
2020-07-18 11:05:16 +02:00
/**
* Get a copy of the plot ID
*
* @return Plot ID copy
2022-10-08 15:11:16 +02:00
* @deprecated PlotId is immutable, copy is not required.
2018-08-10 17:01:10 +02:00
*/
2022-10-18 23:12:27 +02:00
@Deprecated(forRemoval = true, since = "6.10.2")
public @NonNull PlotId copy() {
2022-10-08 15:11:16 +02:00
return this;
2018-08-10 17:01:10 +02:00
}
2020-07-18 11:05:16 +02:00
/**
* Get the ID X component
*
* @return X component
*/
Pull/2693 (#2694) * Commit WIP flag work. * More ported flag types, and additions to the flag API. * Make PlotFlag more generic to allow generic flag creation * Pull Captions methods into a Caption interface. * Port MusicFlag * Port flight flag * Port UntrustedVisitFlag * Port DenyExitFlag * Remove paper suggestion * Make ListFlag lists immutable * Update Flag containers. Add javadocs. Add missing methods. * Port description flag * Port greeting and farewell flags * Port weather flag * Move getExample implementation to BooleanFlag * Port reserved flags * Port all boolean flags. * Remove unused flag types * Invert liquid-flow flag * Find the real (legacy) flag name * Change NOITFY -> NOTIFY in Captions * Make IntegerFlag extendable * Port integer flags * Update Flag command to current API state * Begin remaking flag command * Create DoubleFlag + extract common parsing stuff * Supply arguments in flag parse exceptions * Implement missing flag subcommands * Update Flag command to current API state * Implement PriceFlag * Port deny-teleport * Port gamemode flags * Port BreakFlag * Port PlaceFlag * Port UseFlag * Remove old unused flag constants * Port blocked-cmds flag * Fix entity util * Port TimeFlag * Use CaptionUtility for formatting * Port keep flag * Fix imports * Reformat code * Remove unused classes * Fix MainUtil.java * Remove FlagCmd * Add flag info header and footer * Comment out flag related stuff in SchematicHandler * Remove FlagManager * Finalize Plot.java * Finalize PlotArea.java * Finalize PlotListener * Fix API issues * Fix a bunch of compile errors * Fix `/plot flag remove` * Fix initialization of GlobalFlagContainer * Apply API changes to events * Update SQLManager to new API * Invert default value for DenyExitFlag * Replace flag.getValue().toString() with flag.toString() * Make FlagContainer instance in Plot final * Fix various command issues * Clean up PlotSettings * Don't show internal flags in flag list * Fix `/plot flag add` * Remove the info inventory as it's 100% broken * Add plot info entries and fix up the default format * Fix default flag state in Captions * 781c200 part 2 * Fix odd grammar in captions * Fix odd grammar in captions v2 * Add create table statements for plot_flags * Remove old flag references in SQLManager * Use the new plot_flags table * Add tab completion to `/plot flag` * Improve parse error handling * Make flag permission check recognize parse exceptions * Initial progress towards flag conversion * Fix minor issues * Don't validate flags during flag conversion * Allow unrecognized flags to be parsed * Filter out internal flags from command sugguestions * Use the wrong caption when there's no plot description set * Limit command suggestions for boolean flags * Make blocktypelistflags accept blockcategories * Require categories to be prefixed with '#' and fix some minor display issues * Fix plot database conversion * Update PlotFlagEvent.java Updated return description * Fix command annotation wrapping * Add FLAG_UPDATE event for FlagContainer listeners * Make getParentContainer nullable * Document castUnsafe in FlagContainer * Document FlagContainer constructors * Add missing documentation to FlagContainer * Document FlagParseException * Fix wording in FlagContainer javadoc * Document InternalFlag * Document PlotFlag * Minor changes * Remove revisit comments Co-authored-by: Hannes Greule <SirYwell@users.noreply.github.com> Co-authored-by: NotMyFault <mc.cache@web.de> Co-authored-by: Matt <4009945+MattBDev@users.noreply.github.com>
2020-02-24 18:42:02 +01:00
public int getX() {
2020-07-23 14:11:34 +02:00
return this.x;
Pull/2693 (#2694) * Commit WIP flag work. * More ported flag types, and additions to the flag API. * Make PlotFlag more generic to allow generic flag creation * Pull Captions methods into a Caption interface. * Port MusicFlag * Port flight flag * Port UntrustedVisitFlag * Port DenyExitFlag * Remove paper suggestion * Make ListFlag lists immutable * Update Flag containers. Add javadocs. Add missing methods. * Port description flag * Port greeting and farewell flags * Port weather flag * Move getExample implementation to BooleanFlag * Port reserved flags * Port all boolean flags. * Remove unused flag types * Invert liquid-flow flag * Find the real (legacy) flag name * Change NOITFY -> NOTIFY in Captions * Make IntegerFlag extendable * Port integer flags * Update Flag command to current API state * Begin remaking flag command * Create DoubleFlag + extract common parsing stuff * Supply arguments in flag parse exceptions * Implement missing flag subcommands * Update Flag command to current API state * Implement PriceFlag * Port deny-teleport * Port gamemode flags * Port BreakFlag * Port PlaceFlag * Port UseFlag * Remove old unused flag constants * Port blocked-cmds flag * Fix entity util * Port TimeFlag * Use CaptionUtility for formatting * Port keep flag * Fix imports * Reformat code * Remove unused classes * Fix MainUtil.java * Remove FlagCmd * Add flag info header and footer * Comment out flag related stuff in SchematicHandler * Remove FlagManager * Finalize Plot.java * Finalize PlotArea.java * Finalize PlotListener * Fix API issues * Fix a bunch of compile errors * Fix `/plot flag remove` * Fix initialization of GlobalFlagContainer * Apply API changes to events * Update SQLManager to new API * Invert default value for DenyExitFlag * Replace flag.getValue().toString() with flag.toString() * Make FlagContainer instance in Plot final * Fix various command issues * Clean up PlotSettings * Don't show internal flags in flag list * Fix `/plot flag add` * Remove the info inventory as it's 100% broken * Add plot info entries and fix up the default format * Fix default flag state in Captions * 781c200 part 2 * Fix odd grammar in captions * Fix odd grammar in captions v2 * Add create table statements for plot_flags * Remove old flag references in SQLManager * Use the new plot_flags table * Add tab completion to `/plot flag` * Improve parse error handling * Make flag permission check recognize parse exceptions * Initial progress towards flag conversion * Fix minor issues * Don't validate flags during flag conversion * Allow unrecognized flags to be parsed * Filter out internal flags from command sugguestions * Use the wrong caption when there's no plot description set * Limit command suggestions for boolean flags * Make blocktypelistflags accept blockcategories * Require categories to be prefixed with '#' and fix some minor display issues * Fix plot database conversion * Update PlotFlagEvent.java Updated return description * Fix command annotation wrapping * Add FLAG_UPDATE event for FlagContainer listeners * Make getParentContainer nullable * Document castUnsafe in FlagContainer * Document FlagContainer constructors * Add missing documentation to FlagContainer * Document FlagParseException * Fix wording in FlagContainer javadoc * Document InternalFlag * Document PlotFlag * Minor changes * Remove revisit comments Co-authored-by: Hannes Greule <SirYwell@users.noreply.github.com> Co-authored-by: NotMyFault <mc.cache@web.de> Co-authored-by: Matt <4009945+MattBDev@users.noreply.github.com>
2020-02-24 18:42:02 +01:00
}
2020-07-18 11:05:16 +02:00
/**
* Get the ID Y component
*
* @return Y component
*/
Pull/2693 (#2694) * Commit WIP flag work. * More ported flag types, and additions to the flag API. * Make PlotFlag more generic to allow generic flag creation * Pull Captions methods into a Caption interface. * Port MusicFlag * Port flight flag * Port UntrustedVisitFlag * Port DenyExitFlag * Remove paper suggestion * Make ListFlag lists immutable * Update Flag containers. Add javadocs. Add missing methods. * Port description flag * Port greeting and farewell flags * Port weather flag * Move getExample implementation to BooleanFlag * Port reserved flags * Port all boolean flags. * Remove unused flag types * Invert liquid-flow flag * Find the real (legacy) flag name * Change NOITFY -> NOTIFY in Captions * Make IntegerFlag extendable * Port integer flags * Update Flag command to current API state * Begin remaking flag command * Create DoubleFlag + extract common parsing stuff * Supply arguments in flag parse exceptions * Implement missing flag subcommands * Update Flag command to current API state * Implement PriceFlag * Port deny-teleport * Port gamemode flags * Port BreakFlag * Port PlaceFlag * Port UseFlag * Remove old unused flag constants * Port blocked-cmds flag * Fix entity util * Port TimeFlag * Use CaptionUtility for formatting * Port keep flag * Fix imports * Reformat code * Remove unused classes * Fix MainUtil.java * Remove FlagCmd * Add flag info header and footer * Comment out flag related stuff in SchematicHandler * Remove FlagManager * Finalize Plot.java * Finalize PlotArea.java * Finalize PlotListener * Fix API issues * Fix a bunch of compile errors * Fix `/plot flag remove` * Fix initialization of GlobalFlagContainer * Apply API changes to events * Update SQLManager to new API * Invert default value for DenyExitFlag * Replace flag.getValue().toString() with flag.toString() * Make FlagContainer instance in Plot final * Fix various command issues * Clean up PlotSettings * Don't show internal flags in flag list * Fix `/plot flag add` * Remove the info inventory as it's 100% broken * Add plot info entries and fix up the default format * Fix default flag state in Captions * 781c200 part 2 * Fix odd grammar in captions * Fix odd grammar in captions v2 * Add create table statements for plot_flags * Remove old flag references in SQLManager * Use the new plot_flags table * Add tab completion to `/plot flag` * Improve parse error handling * Make flag permission check recognize parse exceptions * Initial progress towards flag conversion * Fix minor issues * Don't validate flags during flag conversion * Allow unrecognized flags to be parsed * Filter out internal flags from command sugguestions * Use the wrong caption when there's no plot description set * Limit command suggestions for boolean flags * Make blocktypelistflags accept blockcategories * Require categories to be prefixed with '#' and fix some minor display issues * Fix plot database conversion * Update PlotFlagEvent.java Updated return description * Fix command annotation wrapping * Add FLAG_UPDATE event for FlagContainer listeners * Make getParentContainer nullable * Document castUnsafe in FlagContainer * Document FlagContainer constructors * Add missing documentation to FlagContainer * Document FlagParseException * Fix wording in FlagContainer javadoc * Document InternalFlag * Document PlotFlag * Minor changes * Remove revisit comments Co-authored-by: Hannes Greule <SirYwell@users.noreply.github.com> Co-authored-by: NotMyFault <mc.cache@web.de> Co-authored-by: Matt <4009945+MattBDev@users.noreply.github.com>
2020-02-24 18:42:02 +01:00
public int getY() {
2020-07-23 14:11:34 +02:00
return this.y;
Pull/2693 (#2694) * Commit WIP flag work. * More ported flag types, and additions to the flag API. * Make PlotFlag more generic to allow generic flag creation * Pull Captions methods into a Caption interface. * Port MusicFlag * Port flight flag * Port UntrustedVisitFlag * Port DenyExitFlag * Remove paper suggestion * Make ListFlag lists immutable * Update Flag containers. Add javadocs. Add missing methods. * Port description flag * Port greeting and farewell flags * Port weather flag * Move getExample implementation to BooleanFlag * Port reserved flags * Port all boolean flags. * Remove unused flag types * Invert liquid-flow flag * Find the real (legacy) flag name * Change NOITFY -> NOTIFY in Captions * Make IntegerFlag extendable * Port integer flags * Update Flag command to current API state * Begin remaking flag command * Create DoubleFlag + extract common parsing stuff * Supply arguments in flag parse exceptions * Implement missing flag subcommands * Update Flag command to current API state * Implement PriceFlag * Port deny-teleport * Port gamemode flags * Port BreakFlag * Port PlaceFlag * Port UseFlag * Remove old unused flag constants * Port blocked-cmds flag * Fix entity util * Port TimeFlag * Use CaptionUtility for formatting * Port keep flag * Fix imports * Reformat code * Remove unused classes * Fix MainUtil.java * Remove FlagCmd * Add flag info header and footer * Comment out flag related stuff in SchematicHandler * Remove FlagManager * Finalize Plot.java * Finalize PlotArea.java * Finalize PlotListener * Fix API issues * Fix a bunch of compile errors * Fix `/plot flag remove` * Fix initialization of GlobalFlagContainer * Apply API changes to events * Update SQLManager to new API * Invert default value for DenyExitFlag * Replace flag.getValue().toString() with flag.toString() * Make FlagContainer instance in Plot final * Fix various command issues * Clean up PlotSettings * Don't show internal flags in flag list * Fix `/plot flag add` * Remove the info inventory as it's 100% broken * Add plot info entries and fix up the default format * Fix default flag state in Captions * 781c200 part 2 * Fix odd grammar in captions * Fix odd grammar in captions v2 * Add create table statements for plot_flags * Remove old flag references in SQLManager * Use the new plot_flags table * Add tab completion to `/plot flag` * Improve parse error handling * Make flag permission check recognize parse exceptions * Initial progress towards flag conversion * Fix minor issues * Don't validate flags during flag conversion * Allow unrecognized flags to be parsed * Filter out internal flags from command sugguestions * Use the wrong caption when there's no plot description set * Limit command suggestions for boolean flags * Make blocktypelistflags accept blockcategories * Require categories to be prefixed with '#' and fix some minor display issues * Fix plot database conversion * Update PlotFlagEvent.java Updated return description * Fix command annotation wrapping * Add FLAG_UPDATE event for FlagContainer listeners * Make getParentContainer nullable * Document castUnsafe in FlagContainer * Document FlagContainer constructors * Add missing documentation to FlagContainer * Document FlagParseException * Fix wording in FlagContainer javadoc * Document InternalFlag * Document PlotFlag * Minor changes * Remove revisit comments Co-authored-by: Hannes Greule <SirYwell@users.noreply.github.com> Co-authored-by: NotMyFault <mc.cache@web.de> Co-authored-by: Matt <4009945+MattBDev@users.noreply.github.com>
2020-02-24 18:42:02 +01:00
}
2020-07-18 11:05:16 +02:00
/**
* Get the next plot ID for claiming purposes
*
* @return Next plot ID
*/
public @NonNull PlotId getNextId() {
2020-07-23 14:11:34 +02:00
final int absX = Math.abs(x);
final int absY = Math.abs(y);
2017-04-17 03:56:10 +02:00
if (absX > absY) {
if (x > 0) {
2020-07-18 11:05:16 +02:00
return PlotId.of(x, y + 1);
2017-04-17 03:56:10 +02:00
} else {
2020-07-18 11:05:16 +02:00
return PlotId.of(x, y - 1);
2017-04-17 03:56:10 +02:00
}
} else if (absY > absX) {
if (y > 0) {
2020-07-18 11:05:16 +02:00
return PlotId.of(x - 1, y);
2017-04-17 03:56:10 +02:00
} else {
2020-07-18 11:05:16 +02:00
return PlotId.of(x + 1, y);
2017-04-17 03:56:10 +02:00
}
} else {
if (x == y && x > 0) {
2020-07-18 11:05:16 +02:00
return PlotId.of(x, y + 1);
2017-04-17 03:56:10 +02:00
}
if (x == absX) {
2020-07-18 11:05:16 +02:00
return PlotId.of(x, y + 1);
2017-04-17 03:56:10 +02:00
}
if (y == absY) {
2020-07-18 11:05:16 +02:00
return PlotId.of(x, y - 1);
2017-04-17 03:56:10 +02:00
}
2020-07-18 11:05:16 +02:00
return PlotId.of(x + 1, y);
2017-04-17 03:56:10 +02:00
}
}
/**
* Get the PlotId in a relative direction
2018-08-10 17:01:10 +02:00
*
2020-07-18 11:05:16 +02:00
* @param direction Direction
* @return Relative plot ID
*/
public @NonNull PlotId getRelative(final @NonNull Direction direction) {
return switch (direction) {
case NORTH -> PlotId.of(this.getX(), this.getY() - 1);
case EAST -> PlotId.of(this.getX() + 1, this.getY());
case SOUTH -> PlotId.of(this.getX(), this.getY() + 1);
case WEST -> PlotId.of(this.getX() - 1, this.getY());
default -> this;
};
2016-02-10 19:59:51 +01:00
}
@Override
public boolean equals(final Object obj) {
2015-09-13 06:04:31 +02:00
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (this.hashCode() != obj.hashCode()) {
return false;
}
2015-09-13 06:04:31 +02:00
if (getClass() != obj.getClass()) {
return false;
}
2020-07-18 11:05:16 +02:00
final PlotId other = (PlotId) obj;
return this.getX() == other.getX() && this.getY() == other.getY();
2014-11-05 04:42:08 +01:00
}
/**
2020-07-18 11:05:16 +02:00
* Get a String representation of the plot ID where the
* components are separated by ";"
2018-08-10 17:01:10 +02:00
*
2020-07-18 11:05:16 +02:00
* @return {@code x + ";" + y}
*/
@Override
public @NonNull String toString() {
2020-07-18 11:05:16 +02:00
return this.getX() + ";" + this.getY();
2017-03-23 01:10:29 +01:00
}
2020-07-18 11:05:16 +02:00
/**
* Get a String representation of the plot ID where the
2021-01-07 22:24:38 +01:00
* components are separated by a specified string
*
* @param separator Separator
* @return {@code x + separator + y}
*/
public @NonNull String toSeparatedString(String separator) {
2021-01-07 22:24:38 +01:00
return this.getX() + separator + this.getY();
}
/**
* Get a String representation of the plot ID where the
2020-07-18 11:05:16 +02:00
* components are separated by ","
*
* @return {@code x + "," + y}
*/
public @NonNull String toCommaSeparatedString() {
2020-07-18 11:05:16 +02:00
return this.getX() + "," + this.getY();
2020-05-10 19:20:11 +02:00
}
2017-03-23 01:10:29 +01:00
2021-01-09 20:55:19 +01:00
/**
* Get a String representation of the plot ID where the
* components are separated by "_"
*
* @return {@code x + "_" + y}
*/
public @NonNull String toUnderscoreSeparatedString() {
2021-01-09 20:55:19 +01:00
return this.getX() + "_" + this.getY();
}
/**
2020-07-18 11:05:16 +02:00
* Get a String representation of the plot ID where the
* components are separated by "-"
*
* @return {@code x + "-" + y}
*/
public @NonNull String toDashSeparatedString() {
2020-07-18 11:05:16 +02:00
return this.getX() + "-" + this.getY();
}
2018-08-10 17:01:10 +02:00
@Override
public int hashCode() {
return this.hash;
2014-11-05 04:42:08 +01:00
}
2020-07-18 11:05:16 +02:00
public static final class PlotRangeIterator implements Iterator<PlotId>, Iterable<PlotId> {
private final PlotId start;
private final PlotId end;
private int x;
private int y;
private PlotRangeIterator(final @NonNull PlotId start, final @NonNull PlotId end) {
this.start = start;
this.end = end;
this.x = this.start.getX();
this.y = this.start.getY();
}
public static PlotRangeIterator range(final @NonNull PlotId start, final @NonNull PlotId end) {
return new PlotRangeIterator(start, end);
}
@Override
public boolean hasNext() {
2020-12-05 17:29:01 +01:00
// end is fully included
return this.x <= this.end.getX() && this.y <= this.end.getY();
}
@Override
public PlotId next() {
if (!hasNext()) {
2020-12-05 17:29:01 +01:00
throw new NoSuchElementException("The iterator has no more entries");
}
2020-12-05 17:29:01 +01:00
// increment *after* getting the result to include the minimum
// the id to return
PlotId result = PlotId.of(this.x, this.y);
// first increase y, then x
if (this.y == this.end.getY()) {
this.x++;
this.y = this.start.getY();
} else {
this.y++;
}
2020-12-05 17:29:01 +01:00
return result;
}
@NonNull
@Override
public Iterator<PlotId> iterator() {
return this;
}
}
2014-09-22 13:02:14 +02:00
}