Java集合(Java Collections)
我将以下内容添加到UI表单中每行之后的HashMap集合中
宣言
Map<String, List<String>> map = new HashMap<String, List<String>>(); List<String> valSetOne = new ArrayList<String>();
代码段
valSetOne.add("BMW"); valSetOne.add("Audi"); map.put("A1", valSetOne);
当我在UI的第二行时,我想检查HashMap集合中存在的上述组合。
我如何检查每一行中的值的组合?
I am adding the following to the HashMap collection after each row in the UI form
Declaration
Map<String, List<String>> map = new HashMap<String, List<String>>(); List<String> valSetOne = new ArrayList<String>();
Code snippet
valSetOne.add("BMW"); valSetOne.add("Audi"); map.put("A1", valSetOne);
When I am in the second row in UI, I would like to check the above combination exist in the HashMap collection.
How can I check for the combination of values in each row?
原文:https://stackoverflow.com/questions/42087604
最满意答案
不是直接的。 但是,如果您在Open Graph上检查他们的
listens
,您将能够看到他们是否正在积极地分享他们对Facebook的倾听。 但是,它肯定可以连接到Facebook而不是分享你的听力。Not directly. However, if you check their
listens
on Open Graph, you'll be able to see if they're actively sharing their listens to Facebook. However, it's certainly possible to be connected to Facebook and not share your listens.
相关问答
更多-
通过API在Facebook上启用Spotify收听活动吗?(Enable sharing Spotify listening activity on Facebook via API?)[2021-10-11]
您可以使用SPSession的fetchScrobblingStateForService:callback:来确定是否启用了对特定服务的scrobbling。 要启用涂鸦,如果未启用,则需要调用setScrobblingUserName:password:forService:callback:设置服务的凭据,然后设置setScrobblingState:forService:callback:启用它。 将状态设置为SP_SCROBBLING_STATE_USE_GLOBAL_SETTING以在用户的会话 ... -
我注意到你的代码有两件事: 授权: Bearer ${accessToken} accessToken似乎没有在代码块中的任何地方定义,而是我看到了userAccessToken 错误的第二个也是最可能的原因是请求的主体应该是一个字符串(JSON字符串化)而不是一个对象 这个答案就是一个很好的例子 PS:我不知道为什么有人投下了这件事,并没有给出理由,我讨厌这种情况发生 Two things i noticed with your code are: Authorization: Bearer ${acce ...
-
用这个: m.player.playing = 0; 在这里阅读有关播放器的信息: https : //developer.spotify.com/docs/apps/api/0.1/f19ff300f8.html Use this: m.player.playing = 0; Read here about the player: https://developer.spotify.com/docs/apps/api/0.1/f19ff300f8.html
-
Spotify Web API:如何查找用户可以编辑的播放列表(Spotify Web API: How to find playlists the user can edit)[2023-07-12]
应用程序可以代表用户修改播放列表 播放列表由用户拥有。 用户通过向应用程序提供playlist-modify-public或playlist-modify-private范围,授予应用程序这样做的权限。 在“ 使用范围”指南中阅读有关范围的更多信息。 无论可以修改哪个播放列表, 获取用户播放列表端点列表的响应都将完全相同。 但是,您的应用程序可以确定是否可以修改播放列表,因为它应该知道上面列出的两个要求是真还是假。 编辑:为了澄清,应用程序无法修改由与其代表的用户不同的用户所拥有的协作播放列表。 An ap ... -
首先,回答你关于在哪里找到文件夹的第二个问题(我也在我自己的原帖中将其作为评论发布): 在Windows中,文件夹位于数据文件夹中的.zip文件( resources.zip ),因此Spotify.exe。 就我而言,这是 C:\ Users \用户buchetics \应用程序数据\漫游\ Spotify的\ DATA \ resources.zip 在Mac上,您需要右键单击Spotify.app并选择Show Package Content (或类似Show Package Content ),然后 ...
-
有没有办法通过使用其API从Spotify中提取数据的脚本来返回多个用户的收听习惯? Spotify不会暴露用户的收听习惯,除非他们授权应用程序请求它(我认为这是你通过OAuth说的时的意思)。 没有将用户数据暴露给全世界的隐私原因相当大。 is there any way to return multiple users' listening habits through a script that pulls data from Spotify using its API? Spotify doesn' ...
-
不是直接的。 但是,如果您在Open Graph上检查他们的listens ,您将能够看到他们是否正在积极地分享他们对Facebook的倾听。 但是,它肯定可以连接到Facebook而不是分享你的听力。 Not directly. However, if you check their listens on Open Graph, you'll be able to see if they're actively sharing their listens to Facebook. However, it' ...
-
解决了,我从安装目录中获得了Plasylist.bnk,现在解决了。 谢谢大家 Solved, i got Plasylist.bnk from the installation directory, and its solved now. thanks all
-
Web API 当前不包含用于检索用户播放历史的端点。 请密切关注Spotify Web API更改日志的更新。 The Web API doesn't currently contain an endpoint to retrieve a user's play history. Please keep an eye out for updates on the Spotify Web API change log.
-
除非我遗漏了什么,这会做你想要的吗? http://ws.spotify.com/search/1/track.json?q=artist:foo+fighters artist:前缀告诉搜索服务只匹配艺术家。 您可以在此处阅读有关高级搜索语法(也可在客户端中使用)的更多信息 。 Unless I'm missing something, does this do what you want? http://ws.spotify.com/search/1/track.json?q=artist:foo+f ...