X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ftext%2FSonePart.java;fp=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ftext%2FSonePart.java;h=0000000000000000000000000000000000000000;hp=576eb7b3afc41966d50f620f4868e517f604817c;hb=de6d73a2f0718ff65832859a3ef7ba4f32299327;hpb=4273a6ebdde8c4f1092a6c5d4f62ad483f3eaa96 diff --git a/src/main/java/net/pterodactylus/sone/text/SonePart.java b/src/main/java/net/pterodactylus/sone/text/SonePart.java deleted file mode 100644 index 576eb7b..0000000 --- a/src/main/java/net/pterodactylus/sone/text/SonePart.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Sone - SonePart.java - Copyright © 2011–2016 David Roden - * - * 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 . - */ - -package net.pterodactylus.sone.text; - -import java.util.Objects; - -import javax.annotation.Nonnull; - -import net.pterodactylus.sone.data.Sone; -import net.pterodactylus.sone.template.SoneAccessor; - -/** - * {@link Part} implementation that stores a reference to a {@link Sone}. - * - * @author David ‘Bombe’ Roden - */ -public class SonePart implements Part { - - private final Sone sone; - - public SonePart(@Nonnull Sone sone) { - this.sone = Objects.requireNonNull(sone); - } - - @Nonnull - public Sone getSone() { - return sone; - } - - @Override - public String getText() { - return SoneAccessor.getNiceName(sone); - } - -}