Returns the hooks on the object.

@param object
The reference to the object to get hooks for

@return The list of hooks on the object
507536
public List<Hook> get(Reference object) {
		return getResourceFactory().getApiResource(
				"/hook/" + object.getType() + "/" + object.getId() + "/").get(
				new GenericType<List<Hook>>() {
				});
	}
1261488
function (hooks) {
        var obj = {};
        hooks.forEach(function (elements) {
            elements.forEach(function (item) {
                if (!obj[item.name]) {
                    obj[item.name] = item;
                }
            });
        });
        return obj;
    }
492125
public void dispatch (T object) {
		final Object[] items = listeners.begin();
		for (int i = 0, n = listeners.size; i < n; i++) {
			Listener<T> listener = (Listener<T>)items[i];
			listener.receive(this, object);
		}
		listeners.end();
	}
44809
public String objectToString(Object object) {
        DimIProxy action = new DimIProxy(this, IPROXY_OBJECT_TO_STRING);
        action.object = object;
        action.withContext();
        return action.stringResult;
    }
1297046
public int getIndexOf(Object object) {
		int index = tableModel.getUsers().indexOf(object);
		if (index < 0 && customUsers != null)
			return tableModel.getUsers().size() + ArrayUtils.indexOf(customUsers, object);
		return index;
	}
355653
public static <K, V> Set<K> keys(final Map<K, V> object) {
        return object.keySet();
    }
1221209
public Object read(Object object) {
        if(object instanceof Map)
            return mapLookup((Map)object, _identifier);
        else return beanLookup(object, _identifier);
    }
1205679
public ObjectMarshallingStrategy getStrategyObject(Object object) {
        for ( int i = 0, length = this.strategiesList.length; i < length; i++ ) {
            if ( strategiesList[i].accept( object ) ) {
                return strategiesList[i];
            }
        }
        throw new RuntimeException( "Unable to find PlaceholderResolverStrategy for class : " + object.getClass() + " object : " + object );
    }
1299145
function(object) {
		var methods = Array.prototype.slice.call(arguments).slice(1);
		if (!methods.length) {
			methods = gui.Object.ownmethods(object).filter(function(name) {
				return name[0] !== "_"; // exclude private methods
			});
		}
		methods.forEach(function(name) {
			object[name] = object[name].bind(object);
		});
		return object;
	}
127887
function values(object){
    var result = [];

    for (var key in object)
      result.push(object[key]);

    return result;
  }
654738
public V getValue(T object) {
        try {
            if (this.getMethod != null) {
                return (V)this.getMethod.invoke(object);
            } else {
                return (V)this.field.get(object);
            }
        } catch (IllegalAccessException e) {
            throw new RuntimeException(e);
        } catch (InvocationTargetException e) {
            throw new RuntimeException(e);
        }
    }
795787
public final void addObject(Object object) {
        if (object instanceof Iterable) {
            // Iterable
            for (Object o : (Iterable<?>) object) {
                objects.add(o);
            }
        } else if (object.getClass().isArray()) {
            // Array
            for (Object o : (Object[]) object) {
                objects.add(o);
            }
        } else {
            // Single object
            objects.add(object);
        }
    }
258878
def __get_hooks_for_dll(self, event):
        
        result = []
        if self.__apiHooks:
            path = event.get_module().get_filename()
            if path:
                lib_name = PathOperations.pathname_to_filename(path).lower()
                for hook_lib, hook_api_list in compat.iteritems(self.__apiHooks):
                    if hook_lib == lib_name:
                        result.extend(hook_api_list)
        return result
858923
public void setObjects(Object object) {
        if (Collection.class.isAssignableFrom(object.getClass())) {
            this.objects = (Collection) object;
        }
    }
1204191
public Object getProperty(Object object) {
        return java.lang.reflect.Array.getLength(object);
    }
36127
public Element<T> pushTail( T object ) {
		Element<T> e = requestNew();
		e.object = object;

		if( last == null ) {
			first = last = e;
		} else {
			e.previous = last;
			last.next = e;
			last = e;
		}
		size++;

		return e;
	}
1246526
public IMockObject asMock(Object object) {
    if (!isMock(object)) {
      throw new IllegalArgumentException("Not a mock object: " + object.toString());
    }

    ISpockMockObject handle = (ISpockMockObject) object;
    return handle.$spock_get();
  }