Java Collection Element Get getCollection(Object entity)

Here you can find the source of getCollection(Object entity)

Description

get Collection

License

Apache License

Declaration

public static Collection getCollection(Object entity) 

Method Source Code

//package com.java2s;
// Licensed under the Apache License, Version 2.0 (the "License");

import java.util.ArrayList;

import java.util.Collection;

import java.util.List;

public class Main {

    public static Collection getCollection(Object entity) {
        List<Object> rs = new ArrayList<Object>();
        rs.add(entity);/* ww  w  .  java 2 s .c  o m*/
        return rs;
    }
}

Related

  1. getCaseInsensitive(Collection data, String needle)
  2. getClassFromCollection(Collection collection)
  3. getClosest(final String pattern, Collection targets)
  4. getCollection(final Iterable iterable)
  5. getCollection(final String iText, final int iStartPosition, final Collection iCollection)
  6. getCollection(T... items)
  7. getCollectionClass(TT tt)
  8. getCollectionClosingSymbol(Collection col)
  9. getCollectionPreview(final Collection collection, int previewSize)