11package com .apicatalog .did .document ;
22
33import java .net .URI ;
4+ import java .util .Collection ;
45import java .util .Collections ;
5- import java .util .Set ;
66
77import com .apicatalog .did .Did ;
88
@@ -28,7 +28,7 @@ public interface DidDocument {
2828 *
2929 * @return controller set, possibly empty
3030 */
31- default Set <Did > controller () {
31+ default Collection <Did > controller () {
3232 return Collections .emptySet ();
3333 }
3434
@@ -38,7 +38,7 @@ default Set<Did> controller() {
3838 *
3939 * @return verification methods, possibly empty
4040 */
41- default Set <DidVerificationMethod > verification () {
41+ default Collection <DidVerificationMethod > verification () {
4242 return Collections .emptySet ();
4343 }
4444
@@ -48,7 +48,7 @@ default Set<DidVerificationMethod> verification() {
4848 *
4949 * @return URIs, possibly empty
5050 */
51- default Set <URI > alsoKnownAs () {
51+ default Collection <URI > alsoKnownAs () {
5252 return Collections .emptySet ();
5353 }
5454
@@ -58,7 +58,7 @@ default Set<URI> alsoKnownAs() {
5858 *
5959 * @return authentication methods, possibly empty
6060 */
61- default Set <DidVerificationMethod > authentication () {
61+ default Collection <DidVerificationMethod > authentication () {
6262 return Collections .emptySet ();
6363 }
6464
@@ -67,7 +67,7 @@ default Set<DidVerificationMethod> authentication() {
6767 *
6868 * @return assertion methods, possibly empty
6969 */
70- default Set <DidVerificationMethod > assertion () {
70+ default Collection <DidVerificationMethod > assertion () {
7171 return Collections .emptySet ();
7272 }
7373
@@ -76,7 +76,7 @@ default Set<DidVerificationMethod> assertion() {
7676 *
7777 * @return key agreement methods, possibly empty
7878 */
79- default Set <DidVerificationMethod > keyAgreement () {
79+ default Collection <DidVerificationMethod > keyAgreement () {
8080 return Collections .emptySet ();
8181 }
8282
@@ -86,7 +86,7 @@ default Set<DidVerificationMethod> keyAgreement() {
8686 *
8787 * @return invocation methods, possibly empty
8888 */
89- default Set <DidVerificationMethod > capabilityInvocation () {
89+ default Collection <DidVerificationMethod > capabilityInvocation () {
9090 return Collections .emptySet ();
9191 }
9292
@@ -96,7 +96,7 @@ default Set<DidVerificationMethod> capabilityInvocation() {
9696 *
9797 * @return delegation methods, possibly empty
9898 */
99- default Set <DidVerificationMethod > capabilityDelegation () {
99+ default Collection <DidVerificationMethod > capabilityDelegation () {
100100 return Collections .emptySet ();
101101 }
102102
@@ -105,7 +105,7 @@ default Set<DidVerificationMethod> capabilityDelegation() {
105105 *
106106 * @return service definitions, possibly empty
107107 */
108- default Set <DidService > service () {
108+ default Collection <DidService > service () {
109109 return Collections .emptySet ();
110110 }
111111
0 commit comments