org.glassfish.jersey.internal.util.collection.Ref.get()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(6.1k)|赞(0)|评价(0)|浏览(184)

本文整理了Java中org.glassfish.jersey.internal.util.collection.Ref.get方法的一些代码示例,展示了Ref.get的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ref.get方法的具体详情如下:
包路径:org.glassfish.jersey.internal.util.collection.Ref
类名称:Ref
方法名:get

Ref.get介绍

暂无

代码示例

代码示例来源:origin: jersey/jersey

  1. /**
  2. * Get a {@link Value} instance holding the asynchronous context associated with this request processing context.
  3. *
  4. * May return an empty value if no asynchronous context has been initialized in this request processing context yet.
  5. *
  6. * @return value instance holding the asynchronous context associated with this request processing context.
  7. * The returned value may be empty, if no asynchronous context has been initialized yet
  8. * (see {@link #initAsyncContext(org.glassfish.jersey.internal.util.collection.Value)}).
  9. */
  10. public Value<AsyncContext> asyncContextValue() {
  11. return asyncContextValueRef.get();
  12. }

代码示例来源:origin: jersey/jersey

  1. /**
  2. * Get a {@link Value} instance holding the asynchronous context associated with this request processing context.
  3. *
  4. * May return an empty value if no asynchronous context has been initialized in this request processing context yet.
  5. *
  6. * @return value instance holding the asynchronous context associated with this request processing context.
  7. * The returned value may be empty, if no asynchronous context has been initialized yet
  8. * (see {@link #initAsyncContext(org.glassfish.jersey.internal.util.collection.Value)}).
  9. */
  10. public Value<AsyncContext> asyncContextValue() {
  11. return asyncContextValueRef.get();
  12. }

代码示例来源:origin: jersey/jersey

  1. @Override
  2. public boolean equals(final Object obj) {
  3. if (obj == null) {
  4. return false;
  5. }
  6. if (!(obj instanceof Ref)) {
  7. return false;
  8. }
  9. Object otherRef = ((Ref) obj).get();
  10. return this.reference == otherRef || (this.reference != null && this.reference.equals(otherRef));
  11. }

代码示例来源:origin: jersey/jersey

  1. @Override
  2. public boolean equals(final Object obj) {
  3. if (obj == null) {
  4. return false;
  5. }
  6. if (!(obj instanceof Ref)) {
  7. return false;
  8. }
  9. Object otherRef = ((Ref) obj).get();
  10. T localRef = this.reference;
  11. return localRef == otherRef || (localRef != null && localRef.equals(otherRef));
  12. }

代码示例来源:origin: jersey/jersey

  1. @Override
  2. public T provide() {
  3. return referenceFactory.get().get();
  4. }

代码示例来源:origin: jersey/jersey

  1. @Override
  2. public T get() {
  3. return referenceFactory.get().get();
  4. }

代码示例来源:origin: jersey/jersey

  1. @Override
  2. public T provide() {
  3. return referenceFactory.get().get();
  4. }

代码示例来源:origin: jersey/jersey

  1. @Override
  2. public boolean equals(final Object obj) {
  3. if (obj == null) {
  4. return false;
  5. }
  6. if (!(obj instanceof Ref)) {
  7. return false;
  8. }
  9. Object otherRef = ((Ref) obj).get();
  10. return this.reference == otherRef || (this.reference != null && this.reference.equals(otherRef));
  11. }

代码示例来源:origin: jersey/jersey

  1. @Override
  2. public boolean equals(final Object obj) {
  3. if (obj == null) {
  4. return false;
  5. }
  6. if (!(obj instanceof Ref)) {
  7. return false;
  8. }
  9. Object otherRef = ((Ref) obj).get();
  10. T ref = this.reference;
  11. return ref == otherRef || (ref != null && ref.equals(otherRef));
  12. }

代码示例来源:origin: jersey/jersey

  1. @Override
  2. public boolean equals(final Object obj) {
  3. if (obj == null) {
  4. return false;
  5. }
  6. if (!(obj instanceof Ref)) {
  7. return false;
  8. }
  9. Object otherRef = ((Ref) obj).get();
  10. T localRef = this.reference;
  11. return localRef == otherRef || (localRef != null && localRef.equals(otherRef));
  12. }

代码示例来源:origin: jersey/jersey

  1. @Override
  2. public boolean equals(final Object obj) {
  3. if (obj == null) {
  4. return false;
  5. }
  6. if (!(obj instanceof Ref)) {
  7. return false;
  8. }
  9. Object otherRef = ((Ref) obj).get();
  10. T ref = this.reference;
  11. return ref == otherRef || (ref != null && ref.equals(otherRef));
  12. }

代码示例来源:origin: jersey/jersey

  1. @Override
  2. public T get() {
  3. return referenceFactory.get().get();
  4. }

代码示例来源:origin: jersey/jersey

  1. /**
  2. * Get the asynchronous context associated with this request processing context.
  3. *
  4. * May return {@code null} if no asynchronous context has been initialized in this request processing context yet.
  5. *
  6. * @return asynchronous context associated with this request processing context, or {@code null} if the
  7. * asynchronous context has not been initialized yet
  8. * (see {@link #initAsyncContext(org.glassfish.jersey.internal.util.collection.Value)}).
  9. */
  10. public AsyncContext asyncContext() {
  11. return asyncContextValueRef.get().get();
  12. }

代码示例来源:origin: jersey/jersey

  1. /**
  2. * Get the asynchronous context associated with this request processing context.
  3. *
  4. * May return {@code null} if no asynchronous context has been initialized in this request processing context yet.
  5. *
  6. * @return asynchronous context associated with this request processing context, or {@code null} if the
  7. * asynchronous context has not been initialized yet
  8. * (see {@link #initAsyncContext(org.glassfish.jersey.internal.util.collection.Value)}).
  9. */
  10. public AsyncContext asyncContext() {
  11. return asyncContextValueRef.get().get();
  12. }

代码示例来源:origin: jersey/jersey

  1. @Override
  2. public Variant selectVariant(final List<Variant> variants) throws IllegalArgumentException {
  3. if (variants == null || variants.isEmpty()) {
  4. throw new IllegalArgumentException(METHOD_PARAMETER_CANNOT_BE_NULL_OR_EMPTY);
  5. }
  6. final Ref<String> varyValueRef = Refs.emptyRef();
  7. final Variant variant = VariantSelector.selectVariant(this, variants, varyValueRef);
  8. this.varyValue = varyValueRef.get();
  9. return variant;
  10. }

代码示例来源:origin: jersey/jersey

  1. @Override
  2. public Variant selectVariant(final List<Variant> variants) throws IllegalArgumentException {
  3. if (variants == null || variants.isEmpty()) {
  4. throw new IllegalArgumentException(METHOD_PARAMETER_CANNOT_BE_NULL_OR_EMPTY);
  5. }
  6. final Ref<String> varyValueRef = Refs.emptyRef();
  7. final Variant variant = VariantSelector.selectVariant(this, variants, varyValueRef);
  8. this.varyValue = varyValueRef.get();
  9. return variant;
  10. }

代码示例来源:origin: jersey/jersey

  1. wrapper.forward(requestProviderRef.get().get(), new HttpServletResponseWrapper(responseProviderRef.get().get()) {

代码示例来源:origin: jersey/jersey

  1. final RequestProcessingContext data = Stages.process(context, requestProcessingRoot, endpointRef);
  2. final Endpoint endpoint = endpointRef.get();
  3. if (endpoint == null) {

代码示例来源:origin: jersey/jersey

  1. final RequestProcessingContext data = Stages.process(context, requestProcessingRoot, endpointRef);
  2. final Endpoint endpoint = endpointRef.get();
  3. if (endpoint == null) {

代码示例来源:origin: org.glassfish.jersey.core/jersey-server

  1. @Override
  2. public Variant selectVariant(final List<Variant> variants) throws IllegalArgumentException {
  3. if (variants == null || variants.isEmpty()) {
  4. throw new IllegalArgumentException(METHOD_PARAMETER_CANNOT_BE_NULL_OR_EMPTY);
  5. }
  6. final Ref<String> varyValueRef = Refs.emptyRef();
  7. final Variant variant = VariantSelector.selectVariant(this, variants, varyValueRef);
  8. this.varyValue = varyValueRef.get();
  9. return variant;
  10. }

相关文章

Ref类方法