使用此Mapbox文档作为引用:
lineOpacity(Function<T,Float> function)
划线的不透明度。
lineOpacity()将接受什么参数?
有人能给我看一个传递给这个函数的参数的例子吗?
发布于 2019-11-28 09:30:05
public static <T> PropertyValue<Function<T,Float>> lineOpacity(Function<T,Float> function)划线的不透明度。 类型参数:t-函数输入类型 参数:函数-用于浮动的包装函数 返回:浮点函数的属性包装器
这完全是他们的文档状态。如前所述,Function类是用于浮动的包装器函数。lineOpacity方法将返回将传递给function的Type T
我喜欢把这看作是一个HashMap<T,M>,T - the key, let's say String和M - the value, let's say Integer
你想举个例子
lineOpacity(new Function<String, Float>()) // will return a Stringhttps://stackoverflow.com/questions/59085375
复制相似问题