X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fcore%2FSoneProvider.java;h=6b479df5baec88174a6ffa6e0858a1fbe284181d;hb=7f024734546973cd592e6cbf04604705477f15f6;hp=25f4d8b963cae186fd2c02d9e2f54c4ab2382d04;hpb=a47643aed43d118ca68044f95451bb5374cdb332;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/core/SoneProvider.java b/src/main/java/net/pterodactylus/sone/core/SoneProvider.java index 25f4d8b..6b479df 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneProvider.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneProvider.java @@ -1,5 +1,5 @@ /* - * Sone - SoneProvider.java - Copyright © 2011–2012 David Roden + * Sone - SoneProvider.java - Copyright © 2011–2013 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 @@ -27,17 +27,12 @@ import net.pterodactylus.sone.data.Sone; public interface SoneProvider { /** - * Returns the Sone with the given ID, if it exists. If it does not exist - * and {@code create} is {@code false}, {@code null} is returned; otherwise, - * a new Sone with the given ID is created and returned. + * Returns the Sone with the given ID, if it exists. * * @param soneId * The ID of the Sone to return - * @param create - * {@code true} to create a new Sone if no Sone with the given ID - * exists, {@code false} to return {@code null} instead * @return The Sone with the given ID, or {@code null} */ - public Sone getSone(String soneId, boolean create); + public Sone getSone(String soneId); }